|
arduino-audio-tools
|
Encoder for OpenAptx - Depends on https://github.com/pschatzmann/libopenaptx. More...
#include <CodecAPTX.h>
Public Member Functions | |
| APTXEncoder (bool isHd=false) | |
| 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. | |
| virtual void | setAudioInfo (AudioInfo info) |
| Defines the input AudioInfo. | |
| 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 | |
| void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
| struct aptx_context * | ctx = nullptr |
| AudioInfo | info |
| Vector< int24_t > | input_buffer {4 * 2} |
| int | input_pos = 0 |
| bool | is_hd |
| Vector< uint8_t > | output_buffer |
| int | output_pos = 0 |
| Print * | p_print = nullptr |
Encoder for OpenAptx - Depends on https://github.com/pschatzmann/libopenaptx.
|
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.
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 input AudioInfo.
Implements AudioWriter.
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |