arduino-audio-tools
|
A Streaming Decoder where we provide both the input and output as streams. More...
#include <AudioCodecsBase.h>
Public Member Functions | |
virtual void | addNotifyAudioChange (AudioInfoSupport &bi) |
Adds target to be notified about audio changes. | |
virtual AudioInfo | audioInfo ()=0 |
Provides the last available MP3FrameInfo. | |
virtual bool | begin ()=0 |
Starts the processing. | |
virtual void | clearNotifyAudioChange () |
Deletes all change notify subscriptions. | |
virtual bool | copy ()=0 |
Process a single read operation - to be called in the loop. | |
virtual void | end ()=0 |
Releases the reserved memory. | |
bool | isNotifyActive () |
Checks if the automatic AudioInfo update is active. | |
virtual | operator bool ()=0 |
checks if the class is active | |
virtual bool | removeNotifyAudioChange (AudioInfoSupport &bi) |
Removes a target in order not to be notified about audio changes. | |
void | setInput (Stream &inStream) |
void | setNotifyActive (bool flag) |
Deactivate/Reactivate automatic AudioInfo updates: (default is active) | |
virtual void | setOutput (AudioOutput &out_stream) |
Defines the output streams and register to be notified. | |
virtual void | setOutput (AudioStream &out_stream) |
Defines the output streams and register to be notified. | |
virtual void | setOutput (Print &out_stream) |
Defines the output Stream. | |
Protected Member Functions | |
void | notifyAudioChange (AudioInfo info) |
virtual size_t | readBytes (uint8_t *data, size_t len)=0 |
Protected Attributes | |
bool | is_notify_active = true |
Vector< AudioInfoSupport * > | notify_vector |
Stream * | p_input = nullptr |
Print * | p_print = nullptr |
A Streaming Decoder where we provide both the input and output as streams.
|
inlinevirtualinherited |
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, MP3DecoderMAD, EncodedAudioOutput, EncodedAudioStream, AACDecoderFDK, DecoderBasic, MP3DecoderHelix, OggContainerDecoder, Pipeline, and Pipeline::ModifyingStreamAdapter.
Provides the last available MP3FrameInfo.
Implemented in FLACDecoder, StreamingDecoderAdapter, and VorbisDecoder.
Starts the processing.
Implemented in FLACDecoder, StreamingDecoderAdapter, and VorbisDecoder.
Process a single read operation - to be called in the loop.
Implemented in StreamingDecoderAdapter, FLACDecoder, and VorbisDecoder.
Releases the reserved memory.
Implemented in FLACDecoder, StreamingDecoderAdapter, and VorbisDecoder.
checks if the class is active
Implemented in StreamingDecoderAdapter, FLACDecoder, and VorbisDecoder.
Defines the output Stream.
Reimplemented in StreamingDecoderAdapter.