ALAC (Apple Lossless Audio Codec) encoder. This class is responsible for encoding audio data into ALAC format. The implementaion is based on https://github.com/macosforge/alac.
More...
#include <CodecALAC.h>
|
| EncoderALAC (int frameSize=kALACDefaultFrameSize) |
| Default constructor: you can define your own optimized frame size.
|
|
AudioInfo | audioInfo () override |
| provides the actual input AudioInfo
|
|
virtual AudioInfo | audioInfoOut () |
|
bool | begin () override |
|
virtual bool | begin (AudioInfo info) |
|
ALACBinaryConfig & | binaryConfig () |
| Provide the magic coookie for the decoder.
|
|
ALACSpecificConfig | config () |
| Provide the configuration of the encoder.
|
|
void | end () override |
|
int | frameSize () |
| Determins the actually defined number of frames.
|
|
const char * | mime () override |
| Mime type: returns audio/alac.
|
|
| operator bool () |
| Check if the encoder is ready to encode.
|
|
void | setAudioInfo (AudioInfo from) override |
| Defines the sample rate, number of channels and bits per sample.
|
|
void | setFastMode (bool fast) |
| Defines if the encoder should use fast mode.
|
|
void | setFrameSize (int frames) |
| Defines the frame size for the decoder: default is 4096 frames.
|
|
void | setOutput (Print &out_stream) override |
|
size_t | write (const uint8_t *data, size_t len) override |
| Encode the audio samples into ALAC format.
|
|
|
enum | { kFormatFlag_16BitSourceData = 1
, kFormatFlag_20BitSourceData = 2
, kFormatFlag_24BitSourceData = 3
, kFormatFlag_32BitSourceData = 4
} |
|
|
AudioFormatDescription | getInputFormat () |
|
AudioFormatDescription | getOutputFormat () |
|
uint32_t | getOutputFormatFlags (uint32_t bits) |
|
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
|
|
ALACBinaryConfig | bin |
|
ALACSpecificConfig | cfg |
|
ALACEncoder | enc |
|
int | frame_size = kALACDefaultFrameSize |
|
SingleBuffer< uint8_t > | in_buffer |
|
AudioInfo | info |
|
AudioFormatDescription | input_format |
|
bool | is_started = false |
|
Vector< uint8_t > | out_buffer |
|
AudioFormatDescription | out_format |
|
Print * | p_print = nullptr |
|
ALAC (Apple Lossless Audio Codec) encoder. This class is responsible for encoding audio data into ALAC format. The implementaion is based on https://github.com/macosforge/alac.
- Author
- Phil Schatzmann
◆ audioInfo()
|
inlineoverridevirtualinherited |
◆ 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]
◆ end()
◆ mime()
◆ operator bool()
Check if the encoder is ready to encode.
Implements AudioWriter.
◆ setAudioInfo()
|
inlineoverridevirtualinherited |
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, and OSCContainerEncoder.
◆ setOutput()
void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlineoverridevirtual |
◆ write()
size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
Encode the audio samples into ALAC format.
Implements AudioWriter.
The documentation for this class was generated from the following file: