FLACEncoder.
More...
#include <CodecFLAC.h>
|
| 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) |
| |
FLACEncoder.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ FLACEncoder()
◆ ~FLACEncoder()
Destructor - calls end();.
◆ 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/3]
◆ begin() [2/3]
◆ begin() [3/3]
| bool begin |
( |
Print & |
out | ) |
|
|
inline |
◆ blockSize()
◆ compressionLevel()
◆ 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.
◆ isOgg()
◆ isOpen()
◆ mime()
◆ operator bool()
◆ samplesPerFrame()
| virtual uint16_t samplesPerFrame |
( |
| ) |
|
|
inlinevirtualinherited |
◆ setAudioInfo()
We update the audio information which will be used in the begin method.
Reimplemented from AudioEncoder.
◆ setBlockSize()
| void setBlockSize |
( |
int |
size | ) |
|
|
inline |
◆ setCompressionLevel()
| void setCompressionLevel |
( |
int |
level | ) |
|
|
inline |
◆ setOgg()
| void setOgg |
( |
bool |
isOgg | ) |
|
|
inline |
◆ setOutput()
| void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlineoverridevirtual |
◆ write()
| virtual size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
◆ write_callback()
| 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 |
|
) |
| |
|
inlinestaticprotected |
◆ writeBlocking()
| void writeBlocking |
( |
Print * |
out, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineprotectedinherited |
◆ writeBuffer()
| void writeBuffer |
( |
int16_t * |
data, |
|
|
size_t |
samples |
|
) |
| |
|
inlineprotected |
◆ buffer
◆ cfg
◆ flac_block_size
| int flac_block_size = 512 |
|
protected |
◆ flac_compression_level
| int flac_compression_level = 8 |
|
protected |
◆ info
◆ is_ogg
◆ is_open
◆ p_encoder
| FLAC__StreamEncoder* p_encoder =nullptr |
|
protected |
◆ p_print
The documentation for this class was generated from the following file: