arduino-audio-tools
|
g723_24, g721, g723_40 Decoder based on https://github.com/pschatzmann/arduino-libg7xx More...
#include <CodecG7xx.h>
Public Member Functions | |
G7xxDecoder (G7xxCODEC_e codec) | |
AudioInfo | audioInfo () override |
void | begin () override |
virtual void | begin (AudioInfo cfg) |
void | end () override |
virtual bool | isResultPCM () |
If true, the decoding result is PCM data. | |
operator bool () | |
void | setAudioInfo (AudioInfo cfg) override |
for most decoders this is not needed | |
void | setNotifyAudioChange (AudioInfoSupport &bi) override |
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 &out_stream) override |
Defines where the decoded result is written to. | |
size_t | write (const void *data, size_t length) override |
Protected Member Functions | |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
AudioInfo | cfg |
unsigned char | code |
int | dec_bits |
int(* | dec_routine )(int code, int out_coding, struct g72x_state *state_ptr) |
int | in_bits = 0 |
unsigned int | in_buffer = 0 |
AudioInfo | info |
int | input_pos = 0 |
bool | is_active = false |
int | n |
int | out_size |
AudioInfoSupport * | p_notify = nullptr |
Print * | p_print = nullptr |
int16_t | sample |
struct g72x_state | state |
g723_24, g721, g723_40 Decoder based on https://github.com/pschatzmann/arduino-libg7xx