arduino-audio-tools
|
Decoder for G.722. Depends on https://github.com/pschatzmann/arduino-libg722. More...
#include <CodecG722.h>
Public Member Functions | |
virtual AudioInfo | audioInfo () |
virtual void | begin () |
virtual void | begin (AudioInfo cfg) |
virtual void | end () |
virtual bool | isResultPCM () |
If true, the decoding result is PCM data. | |
operator bool () | |
virtual void | setAudioInfo (AudioInfo cfg) |
for most decoders this is not needed | |
virtual void | setNotifyAudioChange (AudioInfoSupport &bi) |
Registers an object that is notified if the audio format is changing. | |
void | setOptions (int options) |
Defines the options for the G.722 Codec: G722_SAMPLE_RATE_8000,G722_PACKED. | |
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 *data, size_t length) |
Protected Member Functions | |
void | processByte (uint8_t byte) |
Build decoding buffer and decode when frame is full. | |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
AudioInfo | cfg |
G722_DEC_CTX * | g722_dctx =nullptr |
AudioInfo | info |
Vector< uint8_t > | input_buffer |
int | input_pos = 0 |
bool | is_active = false |
int | options = G722_SAMPLE_RATE_8000 |
AudioInfoSupport * | p_notify = nullptr |
Print * | p_print = nullptr |
Vector< uint8_t > | result_buffer |
Decoder for G.722. Depends on https://github.com/pschatzmann/arduino-libg722.