arduino-audio-tools
|
Decoder for iLBC. Depends on https://github.com/pschatzmann/libilbc. More...
#include <CodecILBC.h>
Public Member Functions | |
ILBCDecoder (EnumLBCFrameSize frameSize=ms30, bool useEnhancer=true) | |
virtual AudioInfo | audioInfo () |
virtual void | begin () |
virtual void | begin (AudioInfo info) |
virtual 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 | |
virtual 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. | |
virtual void | setOutput (Print &out_stream) |
Defines where the decoded result is written to. | |
virtual size_t | write (const void *input_buffer, size_t length) |
Protected Member Functions | |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
Vector< int16_t > | decoded_buffer {0} |
Vector< uint8_t > | encoded_buffer {0} |
int16_t | encoded_buffer_pos = 0 |
EnumLBCFrameSize | frame_size |
AudioInfo | info |
AudioInfoSupport * | notify = nullptr |
iLBCDecode * | p_ilbc = nullptr |
AudioInfoSupport * | p_notify = nullptr |
Print * | p_print = nullptr |
bool | use_enhancer |
Decoder for iLBC. Depends on https://github.com/pschatzmann/libilbc.