Decoder for ADPCM. Depends on https://github.com/pschatzmann/adpcm.
More...
#include <CodecADPCM.h>
|
|
int | id |
| | custom id to be used by application
|
| |
|
|
virtual bool | decode (uint8_t byte) |
| |
|
void | notifyAudioChange (AudioInfo info) |
| |
|
void | setImplementation () |
| | change the decoder implementation
|
| |
|
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
| |
|
|
Vector< uint8_t > | adpcm_block |
| |
|
int | block_size = ADAPCM_DEFAULT_BLOCK_SIZE |
| |
|
AVCodecID | codec_id = AV_CODEC_ID_ADPCM_MS |
| |
|
int | current_byte = 0 |
| |
|
AudioInfo | info |
| |
|
bool | is_notify_active = true |
| |
|
bool | is_started = false |
| |
|
Vector< AudioInfoSupport * > | notify_vector |
| |
|
adpcm_ffmpeg::ADPCMDecoder * | p_decoder = nullptr |
| |
|
Print * | p_print = nullptr |
| |
Decoder for ADPCM. Depends on https://github.com/pschatzmann/adpcm.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ addNotifyAudioChange()
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, EncodedAudioOutput, EncodedAudioStream, AACDecoderFDK, DecoderBasic, CodecChain, MP3DecoderHelix, MP3DecoderMAD, OggContainerDecoder, RTSPClient< TcpClient, UdpSocket >, Pipeline, and Pipeline::ModifyingStreamAdapter.
◆ audioInfo()
|
|
inlineoverridevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, DecoderBasic, DSFDecoder, MP3DecoderHelix, MP3DecoderMAD, OpusAudioDecoder, VorbisDecoder, WAVDecoder, WavIMADecoder, OggContainerDecoder, and VorbisDecoder.
◆ audioInfoOut()
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 >.
◆ begin() [1/2]
◆ begin() [2/2]
|
|
inlineoverridevirtualinherited |
◆ blockSize()
Provides the block size (= size of encoded frame) (only available after calling begin)
◆ clearNotifyAudioChange()
| virtual void clearNotifyAudioChange |
( |
| ) |
|
|
inlinevirtualinherited |
◆ end()
◆ frameSize()
Provides the frame size (size of decoded frame) (only available after calling begin)
◆ isResultPCM()
| virtual bool isResultPCM |
( |
| ) |
|
|
inlinevirtualinherited |
◆ operator bool()
◆ removeNotifyAudioChange()
◆ setAudioInfo()
|
|
inlineoverridevirtualinherited |
◆ setBlockSize()
| void setBlockSize |
( |
int |
blockSize | ) |
|
|
inlineoverridevirtual |
◆ setCodecConfig()
| virtual bool setCodecConfig |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlinevirtualinherited |
Some decoders need e.g. a magic cookie to provide the relevant info for decoding.
Reimplemented in DecoderALAC, and MultiDecoder.
◆ setOutput() [1/3]
◆ setOutput() [2/3]
◆ setOutput() [3/3]
| virtual void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlineoverridevirtual |
Defines where the decoded result is written to.
Reimplemented from AudioDecoder.
◆ write()
| virtual size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: