arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
G7xxDecoder Class Reference

g723_24, g721, g723_40 Decoder based on https://github.com/pschatzmann/arduino-libg7xx More...

#include <CodecG7xx.h>

Inheritance diagram for G7xxDecoder:
AudioDecoder AudioWriter AudioInfoSource G711Decoder G721Decoder G723_24Decoder G723_40Decoder G711_ALAWDecoder G711_ULAWDecoder

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
 
AudioInfoSupportp_notify = nullptr
 
Printp_print = nullptr
 
int16_t sample
 
struct g72x_state state
 

Detailed Description

g723_24, g721, g723_40 Decoder based on https://github.com/pschatzmann/arduino-libg7xx

Author
Phil Schatzmann

The documentation for this class was generated from the following file: