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

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

#include <CodecG7xx.h>

Inheritance diagram for audio_tools::G7xxEncoder:
audio_tools::AudioEncoder audio_tools::AudioWriter audio_tools::G711Encoder audio_tools::G721Encoder audio_tools::G723_24Encoder audio_tools::G723_40Encoder audio_tools::G711_ALAWEncoder audio_tools::G711_ULAWEncoder

Public Member Functions

 G7xxEncoder (G7xxCODEC_e codec)
 
void begin () override
 
virtual void begin (AudioBaseInfo bi)
 
void end () override
 
const char * mime () override
 
 operator bool ()
 
virtual void setAudioInfo (AudioBaseInfo cfg)
 
void setOutputStream (Print &out_stream) override
 
size_t write (const void *in_ptr, size_t byte_count) override
 
- Public Member Functions inherited from audio_tools::AudioEncoder
 AudioEncoder (AudioEncoder const &)=delete
 
virtual const char * mime ()=0
 
AudioEncoderoperator= (AudioEncoder const &)=delete
 
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
 

Protected Attributes

AudioBaseInfo cfg
 
unsigned char code
 
int enc_bits
 
int(* enc_routine )(int sample, int in_coding, struct g72x_state *state_ptr)
 
bool is_active = false
 
int out_bits = 0
 
unsigned int out_buffer = 0
 
const char * p_mime = nullptr
 
Printp_print = nullptr
 
int resid
 
unsigned char sample_char
 
int16_t sample_int16
 
struct g72x_state state
 

Detailed Description

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

Author
Phil Schatzmann

Member Function Documentation

◆ begin()

void audio_tools::G7xxEncoder::begin ( )
inlineoverridevirtual

◆ end()

void audio_tools::G7xxEncoder::end ( )
inlineoverridevirtual

◆ mime()

const char * audio_tools::G7xxEncoder::mime ( )
inlineoverridevirtual

◆ operator bool()

audio_tools::G7xxEncoder::operator bool ( )
inlinevirtual

◆ setAudioInfo()

virtual void audio_tools::G7xxEncoder::setAudioInfo ( AudioBaseInfo  cfg)
inlinevirtual

◆ setOutputStream()

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

◆ write()

size_t audio_tools::G7xxEncoder::write ( const void *  in_ptr,
size_t  byte_count 
)
inlineoverridevirtual

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