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,
},
InsufficientInputBufferSize {
channel: usize,
expected: usize,
actual: usize,
},
InsufficientOutputBufferSize {
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 in the input buffer doesn’t match the value expected.
WrongNumberOfOutputChannels
Error raised when the number of channels in the output buffer doesn’t match the value expected.
WrongNumberOfMaskChannels
Error raised when the number of channels in the mask doesn’t match the value expected.
InsufficientInputBufferSize
Error raised when the number of frames in an input channel is less than the minimum expected.
InsufficientOutputBufferSize
Error raised when the number of frames in an output channel is less than the minimum expected.
Trait Implementations§
source§impl Debug for ResampleError
impl Debug for ResampleError
source§impl Display for ResampleError
impl Display for ResampleError
source§impl Error for ResampleError
impl Error for ResampleError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for ResampleError
impl Send for ResampleError
impl Sync for ResampleError
impl Unpin for ResampleError
impl UnwindSafe for ResampleError
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