|
arduino-audio-tools
|
Encoder for LC3 - Depends on https://github.com/pschatzmann/arduino-liblc3. More...
#include <CodecLC3.h>
Public Member Functions | |
| LC3Encoder (int dt_us=7500, uint16_t outputByteCount=40) | |
| AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| bool | begin () |
| virtual bool | begin (AudioInfo info) |
| virtual void | end () |
| virtual uint32_t | frameDurationUs () |
| Optional rtsp function: provide the frame duration in microseconds. | |
| virtual const char * | mime () |
| Provides the mime type of the encoded result. | |
| operator bool () | |
| virtual uint16_t | samplesPerFrame () |
| Optional rtsp function: provide samples per the frame. | |
| void | setAudioInfo (AudioInfo from) override |
| Defines the sample rate, number of channels and bits per sample. | |
| virtual void | setOutput (Print &out_stream) |
| Default output assignment (encoders may override to store Print reference) | |
| virtual size_t | write (const uint8_t *data, size_t len) |
Protected Member Functions | |
| bool | checkValues () |
| void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
| bool | active = false |
| unsigned | dt_us = 1000 |
| AudioInfo | info |
| Vector< uint8_t > | input_buffer |
| int | input_pos = 0 |
| lc3_encoder_t | lc3_encoder = nullptr |
| Vector< uint8_t > | lc3_encoder_memory |
| uint16_t | num_frames |
| Vector< uint8_t > | output_buffer |
| uint16_t | output_byte_count = 20 |
| Print * | p_print = nullptr |
| lc3_pcm_format | pcm_format |
Encoder for LC3 - Depends on https://github.com/pschatzmann/arduino-liblc3.
|
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 >.
|
inlinevirtual |
Implements AudioWriter.
Reimplemented in OggContainerEncoder, DecoderBasic, AudioDecoder, AACEncoderFDK, OggContainerDecoder, and MetaDataFilterEncoder.
|
inlineprotected |
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.
Implements AudioWriter.
Reimplemented in MP3EncoderLAME, EncoderBasic, CodecChain, FLACEncoder, OpusAudioEncoder, WAVEncoder, CodecNOP, G7xxEncoder, BinaryContainerEncoder, OggContainerEncoder, OSCContainerEncoder, and MetaDataFilterEncoder.
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |