Encoder for ADPCM-XQ - Depends on https://github.com/pschatzmann/codec-adpcm-xq.
More...
#include <CodecADPCMXQ.h>
Encoder for ADPCM-XQ - Depends on https://github.com/pschatzmann/codec-adpcm-xq.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ ADPCMEncoderXQ()
◆ 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, ResampleStreamT< TInterpolator >, and SupportedRatesStream.
◆ begin() [1/2]
◆ begin() [2/2]
◆ encode()
◆ end()
◆ frameDurationUs()
| virtual uint32_t frameDurationUs |
( |
| ) |
|
|
inlinevirtualinherited |
◆ frameSize()
| virtual int frameSize |
( |
| ) |
|
|
inlinevirtualinherited |
Optional rtsp function: provide the encoded size (in bytes) of one frame, once known (e.g. after the encoder has seen real data). Lets an RTSPFormat size its RTP fragments to match one frame instead of a fixed guess, so throughput actually tracks frameDurationUs() - a fragment size covering several frames' worth of bytes sent at one-frame timing overruns real-time bandwidth and, over UDP (no flow control), causes packet loss. Returns 0 if not yet known/not applicable (fixed-frame-size codecs have no need to override this).
Reimplemented in ADPCMEncoder, EncoderALAC, AMRNBEncoder, AMRWBEncoder, and MP3ParserEncoder.
◆ mime()
Provides the mime type of the encoded result.
Implements AudioEncoder.
◆ operator bool()
◆ 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, H264RtpEncoder, JPEGRtpEncoder, and MetaDataFilterEncoder.
◆ setBlockSizePower()
| void setBlockSizePower |
( |
int |
pow | ) |
|
|
inline |
set bocksizes as 2^pow: range from 8 to 15
◆ setLookahead()
| void setLookahead |
( |
int |
value | ) |
|
|
inline |
Set look ahead bytes from 0 to 8.
◆ setNoiseShaping()
Defines the noise shaping.
◆ setOutput()
| void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlineoverridevirtual |
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
◆ write()
| size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
◆ writeBlocking()
| void writeBlocking |
( |
Print * |
out, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineprotectedinherited |
◆ adpcm_block
◆ adpcm_cnxt
| void* adpcm_cnxt = nullptr |
|
protected |
◆ block_size
◆ block_size_pow2
◆ current_sample
◆ info
◆ is_first
◆ lookahead
◆ noise_shaping
| int noise_shaping = (int) NOISE_SHAPING_OFF |
|
protected |
◆ p_print
◆ pcm_block
◆ pcm_block_size
◆ samples_per_block
| int samples_per_block = 0 |
|
protected |
The documentation for this class was generated from the following file: