|
arduino-audio-tools
|
#include <CodecFLAC.h>
Public Member Functions | |
| FLACEncoder (bool isOgg=false) | |
| Default Constructor. | |
| ~FLACEncoder () | |
| Destructor - calls end();. | |
| AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| virtual bool | begin () override |
| starts the processing using the actual AudioInfo | |
| virtual bool | begin (AudioInfo info) |
| bool | begin (Print &out) |
| starts the processing | |
| int | blockSize () |
| int | compressionLevel () |
| void | end () override |
| stops the processing | |
| virtual uint32_t | frameDurationUs () |
| Optional rtsp function: provide the frame duration in microseconds. | |
| bool | isOgg () |
| bool | isOpen () |
| const char * | mime () override |
| Provides "audio/pcm". | |
| operator bool () override | |
| virtual uint16_t | samplesPerFrame () |
| Optional rtsp function: provide samples per the frame. | |
| virtual void | setAudioInfo (AudioInfo from) override |
| We update the audio information which will be used in the begin method. | |
| void | setBlockSize (int size) |
| void | setCompressionLevel (int level) |
| void | setOgg (bool isOgg) |
| void | setOutput (Print &out_stream) override |
| Defines the output Stream. | |
| virtual size_t | write (const uint8_t *data, size_t len) override |
| Writes FLAC Packet. | |
Protected Member Functions | |
| void | writeBlocking (Print *out, uint8_t *data, size_t len) |
| void | writeBuffer (int16_t *data, size_t samples) |
Static Protected Member Functions | |
| static FLAC__StreamEncoderWriteStatus | write_callback (const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, uint32_t samples, uint32_t current_frame, void *client_data) |
Protected Attributes | |
| Vector< FLAC__int32 > | buffer |
| AudioInfo | cfg |
| int | flac_block_size = 512 |
| int | flac_compression_level = 8 |
| AudioInfo | info |
| bool | is_ogg = false |
| bool | is_open = false |
| FLAC__StreamEncoder * | p_encoder =nullptr |
| Print * | p_print = nullptr |
|
inline |
Default Constructor.
|
inline |
Destructor - calls end();.
|
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 >.
starts the processing using the actual AudioInfo
Implements AudioWriter.
Reimplemented in OggContainerEncoder, DecoderBasic, AudioDecoder, AACEncoderFDK, OggContainerDecoder, and MetaDataFilterEncoder.
|
inline |
|
inline |
|
inlineoverridevirtual |
stops the processing
Implements AudioWriter.
Optional rtsp function: provide the frame duration in microseconds.
Reimplemented in ADPCMEncoder, OpusOggEncoder, MP3ParserEncoder, and MetaDataFilterEncoder.
|
inline |
|
inline |
Provides "audio/pcm".
Implements AudioEncoder.
Implements AudioWriter.
Optional rtsp function: provide samples per the frame.
Reimplemented in MP3ParserEncoder, and MetaDataFilterEncoder.
We update the audio information which will be used in the begin method.
Reimplemented from AudioEncoder.
Defines the output Stream.
Reimplemented from AudioEncoder.
Writes FLAC Packet.
Implements AudioWriter.
|
inlinestaticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |