|
arduino-audio-tools
|
32Kbps G721 Encoder based on https://github.com/pschatzmann/arduino-libg7xx More...
#include <CodecG7xx.h>
Public Member Functions | |
| G721Encoder () | |
| AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| bool | begin () override |
| virtual bool | begin (AudioInfo info) |
| void | end () override |
| virtual uint32_t | frameDurationUs () |
| Optional rtsp function: provide the frame duration in microseconds. | |
| const char * | mime () override |
| Provides the mime type of the encoded result. | |
| operator bool () | |
| virtual uint16_t | samplesPerFrame () |
| Optional rtsp function: provide samples per the frame. | |
| virtual void | setAudioInfo (AudioInfo info) |
| Defines the sample rate, number of channels and bits per sample. | |
| void | setOutput (Print &out_stream) override |
| Default output assignment (encoders may override to store Print reference) | |
| size_t | write (const uint8_t *data, size_t len) override |
Protected Member Functions | |
| void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
| unsigned char | code |
| int | enc_bits |
| int(* | enc_routine )(int sample, int in_coding, struct g72x_state *state_ptr) |
| AudioInfo | info |
| bool | is_active = false |
| int | out_bits = 0 |
| unsigned int | out_buffer = 0 |
| const char * | p_mime = nullptr |
| Print * | p_print = nullptr |
| int | resid |
| unsigned char | sample_char |
| int16_t | sample_int16 |
| struct g72x_state | state |
32Kbps G721 Encoder based on https://github.com/pschatzmann/arduino-libg7xx
|
inline |
|
inlineoverridevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, BinaryContainerEncoder, and MP3ParserEncoder.
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, ResampleStream, and ResampleStreamT< TInterpolator >.
|
inlineoverridevirtualinherited |
Implements AudioWriter.
Reimplemented in OggContainerEncoder, DecoderBasic, AudioDecoder, AACEncoderFDK, OggContainerDecoder, and MetaDataFilterEncoder.
|
inlineoverridevirtualinherited |
Implements AudioWriter.
Optional rtsp function: provide the frame duration in microseconds.
Reimplemented in ADPCMEncoder, OpusOggEncoder, MP3ParserEncoder, and MetaDataFilterEncoder.
Provides the mime type of the encoded result.
Implements AudioEncoder.
Implements AudioWriter.
Optional rtsp function: provide samples per the frame.
Reimplemented in MP3ParserEncoder, and MetaDataFilterEncoder.
Defines the sample rate, number of channels and bits per sample.
Reimplemented from AudioEncoder.
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
Implements AudioWriter.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |