#[repr(u32)]pub enum FlacEncoderInitError {
Show 13 variants
EncoderError = 1,
UnsupportedContainer = 2,
InvalidCallbacks = 3,
InvalidNumberOfChannels = 4,
InvalidBitsPerSample = 5,
InvalidSampleRate = 6,
InvalidBlockSize = 7,
InvalidMaxLpcOrder = 8,
InvalidQlpCoeffPrecision = 9,
BlockSizeTooSmallForLpcOrder = 10,
NotStreamable = 11,
InvalidMetadata = 12,
AlreadyInitialized = 13,
}
Expand description
Possible erroneous return values for the FlacEncoderConfig::init_*()
functions.
Variants§
EncoderError = 1
General failure to set up encoder; call FlacEncoder::state()
for cause.
UnsupportedContainer = 2
The library was not compiled with support for the given container format.
InvalidCallbacks = 3
A required callback was not supplied.
InvalidNumberOfChannels = 4
The encoder has an invalid setting for number of channels.
InvalidBitsPerSample = 5
The encoder has an invalid setting for bits-per-sample.
FLAC supports 4-32 bps but the reference encoder currently supports only up to 24 bps.
InvalidSampleRate = 6
The encoder has an invalid setting for the input sample rate.
InvalidBlockSize = 7
The encoder has an invalid setting for the block size.
InvalidMaxLpcOrder = 8
The encoder has an invalid setting for the maximum LPC order.
InvalidQlpCoeffPrecision = 9
The encoder has an invalid setting for the precision of the quantized linear predictor coefficients.
BlockSizeTooSmallForLpcOrder = 10
The specified block size is less than the maximum LPC order.
NotStreamable = 11
The encoder is bound to the Subset but other settings violate it.
InvalidMetadata = 12
The metadata input to the encoder is invalid, in one of the following ways:
- One of the metadata blocks contains an undefined type
- It contains an illegal CUESHEET as checked by
FLAC__format_cuesheet_is_legal()
- It contains an illegal SEEKTABLE as checked by
FLAC__format_seektable_is_legal()
- It contains more than one SEEKTABLE block or more than one VORBIS_COMMENT block
AlreadyInitialized = 13
FlacEncoderConfig::init_*()
was called when the encoder was already initialized, usually because
FLAC__stream_encoder_finish() was not called.
Trait Implementations§
Source§impl Clone for FlacEncoderInitError
impl Clone for FlacEncoderInitError
Source§fn clone(&self) -> FlacEncoderInitError
fn clone(&self) -> FlacEncoderInitError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more