Encoder for G.722 - Depends on https://github.com/pschatzmann/arduino-libg722. Inspired by g722enc.c.
More...
#include <CodecG722.h>
Encoder for G.722 - Depends on https://github.com/pschatzmann/arduino-libg722. Inspired by g722enc.c.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ G722Encoder()
◆ audioInfo()
|
|
inlineoverridevirtualinherited |
◆ audioInfoOut()
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in MP3EncoderShine, PureDataStream, PWMAudioOutput< PWMDriverT >, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
◆ begin() [1/2]
◆ begin() [2/2]
◆ end()
◆ frameDurationUs()
| virtual uint32_t frameDurationUs |
( |
| ) |
|
|
inlinevirtualinherited |
◆ mime()
| virtual const char * mime |
( |
| ) |
|
|
inlinevirtual |
Provides the mime type of the encoded result.
Implements AudioEncoder.
◆ operator bool()
◆ processByte()
| void processByte |
( |
uint8_t |
byte | ) |
|
|
inlineprotected |
◆ samplesPerFrame()
| virtual uint16_t samplesPerFrame |
( |
| ) |
|
|
inlinevirtualinherited |
◆ setAudioInfo()
|
|
inlineoverridevirtualinherited |
Defines the sample rate, number of channels and bits per sample.
Implements AudioWriter.
Reimplemented in MP3EncoderLAME, EncoderBasic, CodecChain, DSFEncoder, FLACEncoder, MP3EncoderShine, OpusAudioEncoder, OpusMultiStreamAudioEncoder, WAVEncoder, CodecNOP, G7xxEncoder, G729Encoder, BinaryContainerEncoder, OggContainerEncoder, OSCContainerEncoder, and MetaDataFilterEncoder.
◆ setOptions()
| void setOptions |
( |
int |
options | ) |
|
|
inline |
Defines the options for the G.722 Codec: G722_SAMPLE_RATE_8000,G722_PACKED.
◆ setOutput()
| virtual void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlinevirtual |
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
◆ write()
| virtual size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlinevirtual |
◆ writeBlocking()
| void writeBlocking |
( |
Print * |
out, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineprotectedinherited |
◆ buffer_pos
◆ g722_ectx
| G722_ENC_CTX* g722_ectx = nullptr |
|
protected |
◆ info
◆ input_buffer
◆ is_active
◆ options
| int options = G722_SAMPLE_RATE_8000 |
|
protected |
◆ p_print
◆ result_buffer
The documentation for this class was generated from the following file: