Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GSMEncoder Class Reference

Encoder for GSM - Depends on Inspired by gsmenc.c. More...

#include <CodecGSM.h>

Inheritance diagram for GSMEncoder:
AudioEncoder AudioWriter

Public Member Functions

 GSMEncoder (bool scaling=true)
void begin ()
void begin (AudioInfo bi)
virtual void end ()
virtual const char * mime ()
 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.
virtual void setOutput (Print &out_stream)
virtual size_t write (const void *in_ptr, size_t in_size)

Protected Member Functions

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

Protected Attributes

int buffer_pos = 0
AudioInfo cfg
Vector< uint8_t > input_buffer
bool is_active = false
Printp_print = nullptr
Vector< uint8_t > result_buffer
bool scaling_active
gsm v_gsm

Detailed Description

Encoder for GSM - Depends on Inspired by gsmenc.c.

Phil Schatzmann

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