FLACEncoder.
More...
#include <CodecFLAC.h>
|
| FLACEncoder (bool isOgg=false) |
| Default Constructor.
|
|
| ~FLACEncoder () |
| Destructor - calls end();.
|
|
AudioInfo | audioInfo () |
| provides the actual input AudioInfo
|
|
virtual AudioInfo | audioInfoOut () |
| provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
|
|
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
|
|
bool | isOgg () |
|
bool | isOpen () |
|
const char * | mime () override |
| Provides "audio/pcm".
|
|
| operator bool () override |
|
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.
|
|
|
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
|
void | writeBuffer (int16_t *data, size_t samples) |
|
|
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) |
|
|
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 |
|
FLACEncoder.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
The documentation for this class was generated from the following file: