arduino-audio-tools
|
Decodes the provided data from the DAT and CFG segments. More...
#include <ContainerBinary.h>
Public Member Functions | |
BinaryContainerDecoder (AudioDecoder &decoder) | |
BinaryContainerDecoder (AudioDecoder *decoder) | |
AudioInfo | audioInfo () |
void | begin () |
virtual void | begin (AudioInfo info) |
void | end () |
virtual bool | isResultPCM () |
If true, the decoding result is PCM data. | |
operator bool () | |
virtual void | setAudioInfo (AudioInfo from) override |
for most decoders this is not needed | |
void | setMetaCallback (void(*callback)(uint8_t *, int)) |
void | setNotifyAudioChange (AudioInfoSupport &bi) |
Registers an object that is notified if the audio format is changing. | |
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. | |
void | setOutput (Print &outStream) |
Defines where the decoded result is written to. | |
size_t | write (const void *data, size_t len) |
Protected Member Functions | |
ContainerType | checkType (ContainerType type) |
ProcessedResult | loadData (uint8_t *data8, size_t len) |
ProcessedResult | loadOpen (ProcessedResult in, uint8_t *data8, size_t len) |
size_t | output (uint8_t *data, size_t len) |
ProcessedResult | processData (uint8_t *data8, size_t len) |
ProcessedResult | processOpen (ProcessedResult in, uint8_t *data8, size_t len) |
void | setupIntialOutputStream (Print &outStream) |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
bool | writeData (ProcessedResult result) |
Protected Attributes | |
SingleBuffer< uint8_t > | frame {0} |
CommonHeader | header |
const size_t | header_size = sizeof(header) |
AudioInfo | info |
bool | is_first = true |
bool | is_initial_output = true |
void(* | meta_callback )(uint8_t *, int) = nullptr |
AudioDecoder * | p_codec = nullptr |
Print * | p_final_print = nullptr |
AudioInfoSupport * | p_notify = nullptr |
Print * | p_out = nullptr |
Print * | p_print = nullptr |
AudioWriter * | p_print1 = nullptr |
AudioWriter * | p_print2 = nullptr |
ProcessedResult | result |
ContainerTargetPrint | target |
Decodes the provided data from the DAT and CFG segments.