pub enum FlacEncoderInitErrorCode {
Show 14 variants
StreamEncoderInitStatusOk = 0,
StreamEncoderInitStatusEncoderError = 1,
StreamEncoderInitStatusUnsupportedContainer = 2,
StreamEncoderInitStatusInvalidCallbacks = 3,
StreamEncoderInitStatusInvalidNumberOfChannels = 4,
StreamEncoderInitStatusInvalidBitsPerSample = 5,
StreamEncoderInitStatusInvalidSampleRate = 6,
StreamEncoderInitStatusInvalidBlockSize = 7,
StreamEncoderInitStatusInvalidMaxLpcOrder = 8,
StreamEncoderInitStatusInvalidQlpCoeffPrecision = 9,
StreamEncoderInitStatusBlockSizeTooSmallForLpcOrder = 10,
StreamEncoderInitStatusNotStreamable = 11,
StreamEncoderInitStatusInvalidMetadata = 12,
StreamEncoderInitStatusAlreadyInitialized = 13,
}
Expand description
§The error code for FlacEncoderInitError
Variants§
StreamEncoderInitStatusOk = 0
- Initialization was successful
StreamEncoderInitStatusEncoderError = 1
- General failure to set up encoder; call FLAC__stream_encoder_get_state() for cause.
StreamEncoderInitStatusUnsupportedContainer = 2
- The library was not compiled with support for the given container format.
StreamEncoderInitStatusInvalidCallbacks = 3
- A required callback was not supplied.
StreamEncoderInitStatusInvalidNumberOfChannels = 4
- The encoder has an invalid setting for number of channels.
StreamEncoderInitStatusInvalidBitsPerSample = 5
- The encoder has an invalid setting for bits-per-sample. FLAC supports 4-32 bps.
StreamEncoderInitStatusInvalidSampleRate = 6
- The encoder has an invalid setting for the input sample rate.
StreamEncoderInitStatusInvalidBlockSize = 7
- The encoder has an invalid setting for the block size.
StreamEncoderInitStatusInvalidMaxLpcOrder = 8
- The encoder has an invalid setting for the maximum LPC order.
StreamEncoderInitStatusInvalidQlpCoeffPrecision = 9
- The encoder has an invalid setting for the precision of the quantized linear predictor coefficients.
StreamEncoderInitStatusBlockSizeTooSmallForLpcOrder = 10
- The specified block size is less than the maximum LPC order.
StreamEncoderInitStatusNotStreamable = 11
- The encoder is bound to the Subset but other settings violate it.
StreamEncoderInitStatusInvalidMetadata = 12
- The metadata input to the encoder is invalid, in one of the following ways:
- FLAC__stream_encoder_set_metadata() was called with a null pointer but a block count > 0
- 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
- FLAC__STREAM_ENCODER_INIT_STATUS_ALREADY_INITIALIZED
- FLAC__stream_encoder_init_*() was called when the encoder was already initialized, usually because FLAC__stream_encoder_finish() was not called.
StreamEncoderInitStatusAlreadyInitialized = 13
- FLAC__stream_encoder_init_*() was called when the encoder was already initialized, usually because FLAC__stream_encoder_finish() was not called.
Trait Implementations§
Source§impl Clone for FlacEncoderInitErrorCode
impl Clone for FlacEncoderInitErrorCode
Source§fn clone(&self) -> FlacEncoderInitErrorCode
fn clone(&self) -> FlacEncoderInitErrorCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FlacEncoderInitErrorCode
impl Debug for FlacEncoderInitErrorCode
Source§impl Display for FlacEncoderInitErrorCode
impl Display for FlacEncoderInitErrorCode
Source§impl Error for FlacEncoderInitErrorCode
impl Error for FlacEncoderInitErrorCode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<u32> for FlacEncoderInitErrorCode
impl From<u32> for FlacEncoderInitErrorCode
impl Copy for FlacEncoderInitErrorCode
Auto Trait Implementations§
impl Freeze for FlacEncoderInitErrorCode
impl RefUnwindSafe for FlacEncoderInitErrorCode
impl Send for FlacEncoderInitErrorCode
impl Sync for FlacEncoderInitErrorCode
impl Unpin for FlacEncoderInitErrorCode
impl UnwindSafe for FlacEncoderInitErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more