|
arduino-audio-tools
|
A more natural Stream class to process encoded data (aac, wav, mp3...) which also supports the decoding by calling readBytes(). More...
#include <AudioEncoded.h>
Protected Member Functions | |
| virtual int | not_supported (int out, const char *msg="") |
| void | notifyAudioChange (AudioInfo info) |
| void | refillReadBuffer () |
| Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read() | |
| void | setupReader () |
Protected Attributes | |
| int | _timeout = 10 |
| float | byte_factor = 3.0f |
| EncodedAudioOutput | enc_out |
| AudioInfo | info |
| bool | is_notify_active = true |
| Vector< AudioInfoSupport * > | notify_vector |
| Print * | p_print = nullptr |
| Stream * | p_stream = nullptr |
| TransformationReader< ReformatBaseStream > | reader |
| RingBuffer< uint8_t > | tmp_in {0} |
| RingBuffer< uint8_t > | tmp_out {0} |
| int | write_buffer_size = MAX_SINGLE_CHARS |
A more natural Stream class to process encoded data (aac, wav, mp3...) which also supports the decoding by calling readBytes().
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlineoverridevirtual |
Adds target to be notified about audio changes.
Reimplemented from AudioInfoSource.
|
inlineoverridevirtual |
provides the actual input AudioInfo
Reimplemented from AudioStream.
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in PureDataStream, PWMAudioOutput, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
|
inlineoverridevirtualinherited |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
Deletes all change notify subscriptions.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
|
inline |
Provides the initialized decoder.
|
inline |
|
inline |
Provides the initialized encoder.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Flushes the encoder without tearing down the reader infrastructure. Called by TransformationReader on EOF so that final encoded bytes are written into the result_queue while it is still the active output.
Reimplemented from ReformatBaseStream.
|
inlineoverridevirtual |
approx compression factor: e.g. mp3 is around 4
Implements ReformatBaseStream.
|
inline |
|
inline |
|
inline |
Reimplemented from AudioStream.
Source to generate silence: just sets the buffer to 0.
|
inlineprotectedinherited |
Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read()
|
inlinevirtualinherited |
Removes a target in order not to be notified about audio changes.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
Define the size of the interal read result queue: same as transformationReader().resizeResultQueue(size)
Defines the input AudioInfo.
Reimplemented from AudioStream.
|
inline |
|
inline |
Defines the read buffer size for individual reads: same as transformationReader().setMaxReadSize(size)
Deactivate/Reactivate automatic AudioInfo updates: (default is active)
|
inlineoverridevirtual |
Reimplemented from ReformatBaseStream.
|
inline |
Defines/Changes the output target.
Reimplemented from ReformatBaseStream.
|
inlineoverridevirtual |
Reimplemented from ReformatBaseStream.
|
inline |
Defines/Changes the input & output.
Reimplemented from ReformatBaseStream.
|
inlineprotectedinherited |
|
inlinevirtualinherited |
Provides access to the TransformationReader.
Reimplemented from AudioStream.
Reimplemented in MemoryStream, AudioStreamWrapper, BufferedTaskStream, RingBufferStream, BufferedStream, and URLStream.
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |