arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
audio_tools::G7xxDecoder Class Reference

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

#include <CodecG7xx.h>

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

Public Member Functions

 G7xxDecoder (G7xxCODEC_e codec)
 
AudioBaseInfo audioInfo () override
 
void begin () override
 
virtual void begin (AudioBaseInfo cfg)
 
void end () override
 
 operator bool ()
 
void setAudioInfo (AudioBaseInfo cfg) override
 
void setNotifyAudioChange (AudioBaseInfoDependent &bi) override
 
void setOutputStream (Print &out_stream) override
 
size_t write (const void *data, size_t length) override
 
- Public Member Functions inherited from audio_tools::AudioDecoder
 AudioDecoder (AudioDecoder const &)=delete
 
virtual AudioBaseInfo audioInfo ()=0
 
virtual bool isResultPCM ()
 
AudioDecoderoperator= (AudioDecoder const &)=delete
 
virtual void setAudioInfo (AudioBaseInfo from) override
 
virtual void setOutputStream (AudioPrint &out_stream)
 
virtual void setOutputStream (AudioStream &out_stream)
 
virtual void setOutputStream (Print &out_stream) override=0
 
virtual void begin ()=0
 
virtual void end ()=0
 
virtual operator bool ()=0
 
virtual void setAudioInfo (AudioBaseInfo from)=0
 
virtual void setOutputStream (Print &out_stream)=0
 
virtual size_t write (const void *in_ptr, size_t in_size)=0
 
virtual void setNotifyAudioChange (AudioBaseInfoDependent &bi)=0
 

Protected Attributes

AudioBaseInfo 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
 
int input_pos = 0
 
bool is_active = false
 
int n
 
int out_size
 
AudioBaseInfoDependentp_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

Member Function Documentation

◆ audioInfo()

AudioBaseInfo audio_tools::G7xxDecoder::audioInfo ( )
inlineoverridevirtual

◆ begin()

void audio_tools::G7xxDecoder::begin ( )
inlineoverridevirtual

◆ end()

void audio_tools::G7xxDecoder::end ( )
inlineoverridevirtual

◆ operator bool()

audio_tools::G7xxDecoder::operator bool ( )
inlinevirtual

◆ setAudioInfo()

void audio_tools::G7xxDecoder::setAudioInfo ( AudioBaseInfo  cfg)
inlineoverridevirtual

Reimplemented from audio_tools::AudioDecoder.

◆ setNotifyAudioChange()

void audio_tools::G7xxDecoder::setNotifyAudioChange ( AudioBaseInfoDependent bi)
inlineoverridevirtual

◆ setOutputStream()

void audio_tools::G7xxDecoder::setOutputStream ( Print out_stream)
inlineoverridevirtual

◆ write()

size_t audio_tools::G7xxDecoder::write ( const void *  data,
size_t  length 
)
inlineoverridevirtual

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