pub enum VocoderError {
WrongPcmLength {
expected: usize,
got: usize,
},
WrongBitsLength {
expected: usize,
got: usize,
},
Analysis(AnalysisError),
Quantize(String),
UnsupportedTranscode {
from: Rate,
to: Rate,
},
}Expand description
Errors that can surface from Vocoder operations. Wraps the
rate-specific error types so a single ? covers any Vocoder call.
Variants§
WrongPcmLength
Input PCM slice was the wrong length. Always frame_samples().
Fields
WrongBitsLength
Input bit slice was the wrong length. Always fec_frame_bytes().
Fields
Analysis(AnalysisError)
Analysis encoder failure (HPF / pitch / refinement).
Quantize(String)
Wire-quantize failure (e.g. predictor returned a non-finite value).
UnsupportedTranscode
Requested transcode direction is not supported. The pair of rates has no parameter-domain converter wired up.
Trait Implementations§
Source§impl Debug for VocoderError
impl Debug for VocoderError
Source§impl Display for VocoderError
impl Display for VocoderError
Source§impl Error for VocoderError
impl Error for VocoderError
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()
Auto Trait Implementations§
impl Freeze for VocoderError
impl RefUnwindSafe for VocoderError
impl Send for VocoderError
impl Sync for VocoderError
impl Unpin for VocoderError
impl UnsafeUnpin for VocoderError
impl UnwindSafe for VocoderError
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