arduino-audio-tools
|
MP3 and AAC Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix. We dynamically create a MP3 or AAC decoder dependent on the provided audio format. More...
#include <CodecHelix.h>
Public Member Functions | |
DecoderHelix (Print &out_stream) | |
DecoderHelix (Print &out_stream, AudioInfoSupport &bi) | |
AudioInfo | audioInfo () |
void | begin () |
Starts the processing. | |
virtual void | begin (AudioInfo info) |
void | end () |
Releases the reserved memory. | |
virtual bool | isResultPCM () |
If true, the decoding result is PCM data. | |
operator bool () | |
checks if the class is active | |
virtual void | setAudioInfo (AudioInfo from) override |
for most decoders this is not needed | |
void | setNotifyAudioChange (AudioInfoSupport &bi) |
virtual void | setOutput (AudioOutput &out_stream) |
Defines where the decoded result is written to. | |
virtual void | setOutput (AudioStream &out_stream) |
Defines where the decoded result is written to. | |
virtual void | setOutput (Print &outStream) |
Defines the output Stream. | |
size_t | write (const void *data, size_t len) |
Write mp3 data to decoder. | |
Protected Member Functions | |
void | resetDecoder () |
Deletes the decoder. | |
void | setupDecoder (const byte *start) |
Defines the decoder based on the audio format. | |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
AudioInfo | info |
AudioInfo | noInfo |
AudioInfoSupport * | p_bi = nullptr |
AudioDecoder * | p_decoder = nullptr |
AudioInfoSupport * | p_notify = nullptr |
Print * | p_out_stream = nullptr |
Print * | p_print = nullptr |
MP3 and AAC Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix. We dynamically create a MP3 or AAC decoder dependent on the provided audio format.
|
inlinevirtual |
Defines the callback object to which the Audio information change is provided
Reimplemented from AudioDecoder.