Enum rubato::ResampleError
source · [−]pub enum ResampleError {
RatioOutOfBounds {
provided: f64,
original: f64,
max_relative_ratio: f64,
},
SyncNotAdjustable,
WrongNumberOfInputChannels {
expected: usize,
actual: usize,
},
WrongNumberOfOutputChannels {
expected: usize,
actual: usize,
},
WrongNumberOfMaskChannels {
expected: usize,
actual: usize,
},
WrongNumberOfInputFrames {
channel: usize,
expected: usize,
actual: usize,
},
}
Expand description
The error type used by rubato
.
Variants
RatioOutOfBounds
Error raised when Resampler::set_resample_ratio is called with a ratio outside the maximum range specified when the resampler was constructed.
SyncNotAdjustable
Error raised when calling Resampler::set_resample_ratio on a synchronous resampler.
WrongNumberOfInputChannels
Error raised when the number of channels of the input buffer doesn’t match expected.
WrongNumberOfOutputChannels
Error raised when the number of channels of the output buffer doesn’t match expected.
WrongNumberOfMaskChannels
Error raised when the number of channels of the mask doesn’t match expected.
WrongNumberOfInputFrames
Error raised when the number of frames in a single channel doesn’t match the expected.
Trait Implementations
sourceimpl Debug for ResampleError
impl Debug for ResampleError
sourceimpl Display for ResampleError
impl Display for ResampleError
sourceimpl Error for ResampleError
impl Error for ResampleError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for ResampleError
impl Send for ResampleError
impl Sync for ResampleError
impl Unpin for ResampleError
impl UnwindSafe for ResampleError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more