No Matches
Public Member Functions | Protected Attributes | List of all members
audio_tools::G711Encoder Class Reference

64 kbit/s g711 ULOW Encoder based on Supported encoder parameters: linear2alaw2, linear2ulaw More...

#include <CodecG7xx.h>

Inheritance diagram for audio_tools::G711Encoder:
audio_tools::G7xxEncoder audio_tools::AudioEncoder audio_tools::AudioWriter audio_tools::G711_ALAWEncoder audio_tools::G711_ULAWEncoder

Public Member Functions

 G711Encoder (uint8_t(*enc)(int))
size_t write (const void *in_ptr, size_t in_size) override
- Public Member Functions inherited from audio_tools::G7xxEncoder
 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

uint8_t(* enc )(int) =nullptr
- Protected Attributes inherited from audio_tools::G7xxEncoder
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

64 kbit/s g711 ULOW Encoder based on Supported encoder parameters: linear2alaw2, linear2ulaw

Phil Schatzmann

Member Function Documentation

◆ write()

size_t audio_tools::G711Encoder::write ( const void *  in_ptr,
size_t  in_size 

Reimplemented from audio_tools::G7xxEncoder.

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