arduino-audio-tools
|
Encoder for G.722 - Depends on https://github.com/pschatzmann/arduino-libg722. Inspired by g722enc.c. More...
#include <CodecG722.h>
Public Member Functions | |
AudioInfo | audioInfo () |
provides the actual input AudioInfo | |
virtual AudioInfo | audioInfoOut () |
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. | |
void | setOptions (int options) |
Defines the options for the G.722 Codec: G722_SAMPLE_RATE_8000,G722_PACKED. | |
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 | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
int | buffer_pos = 0 |
G722_ENC_CTX * | g722_ectx = nullptr |
AudioInfo | info |
Vector< uint8_t > | input_buffer |
bool | is_active = false |
int | options = G722_SAMPLE_RATE_8000 |
Print * | p_print = nullptr |
Vector< uint8_t > | result_buffer |
Encoder for G.722 - Depends on https://github.com/pschatzmann/arduino-libg722. Inspired by g722enc.c.
|
inlinevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, and BinaryContainerEncoder.
|
inlinevirtualinherited |
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in PureDataStream, PWMAudioOutput, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, and ResampleStream.
|
inlinevirtual |
Implements AudioWriter.
|
inlinevirtualinherited |
Reimplemented in AACEncoderFDK.
|
inlinevirtual |
Implements AudioWriter.
|
inlinevirtual |
Provides the mime type of the encoded result.
Implements AudioEncoder.
|
inlinevirtual |
Implements AudioWriter.
|
inlineoverridevirtualinherited |
Defines the sample rate, number of channels and bits per sample.
Implements AudioWriter.
Reimplemented in MP3EncoderLAME, EncoderBasic, FLACEncoder, OpusAudioEncoder, WAVEncoder, CodecNOP, G7xxEncoder, BinaryContainerEncoder, and OggContainerEncoder.
|
inlinevirtual |
Implements AudioWriter.
|
inlinevirtual |
Implements AudioWriter.