arduino-audio-tools
|
Encoder for GSM - Depends on https://github.com/pschatzmann/arduino-libgsm. Inspired by gsmenc.c. More...
#include <CodecGSM.h>
Public Member Functions | |
GSMEncoder (bool scaling=true) | |
AudioInfo | audioInfo () |
provides the actual input AudioInfo | |
virtual AudioInfo | audioInfoOut () |
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream | |
bool | begin () |
virtual bool | begin (AudioInfo info) |
virtual void | end () |
virtual const char * | mime () |
Provides the mime type of the encoded result. | |
operator bool () | |
void | setAudioInfo (AudioInfo from) override |
Defines the sample rate, number of channels and bits per sample. | |
virtual void | setOutput (Print &out_stream) |
virtual size_t | write (const uint8_t *data, size_t len) |
Protected Member Functions | |
void | processByte (uint8_t byte) |
void | scaleValues (Vector< uint8_t > &vector) |
void | toBigEndian (Vector< uint8_t > &vector) |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
int | buffer_pos = 0 |
AudioInfo | info |
Vector< uint8_t > | input_buffer |
bool | is_active = false |
Print * | p_print = nullptr |
Vector< uint8_t > | result_buffer |
bool | scaling_active |
gsm | v_gsm |
Encoder for GSM - Depends on https://github.com/pschatzmann/arduino-libgsm. Inspired by gsmenc.c.