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

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

#include <CodecG7xx.h>

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

Public Member Functions

 G7xxEncoder (G7xxCODEC_e codec)
 
void begin () override
 
virtual void begin (AudioInfo bi)
 
void end () override
 
const char * mime () override
 Provides the mime type of the encoded result.
 
 operator bool ()
 
virtual void setAudioInfo (AudioInfo cfg)
 Defines the sample rate, number of channels and bits per sample.
 
void setOutput (Print &out_stream) override
 
size_t write (const void *in_ptr, size_t byte_count) override
 

Protected Member Functions

void writeBlocking (Print *out, uint8_t *data, size_t len)
 

Protected Attributes

AudioInfo 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

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