pub enum MixingError {
LengthMismatch(usize, usize),
InvalidSignalCount(String),
InvalidParameter(String),
IncompatibleFormat(String),
}Expand description
Custom error types for signal mixing operations.
This enum defines errors specific to combining multiple audio signals, such as stereo mixing, multi-channel mixing, and dry/wet blending.
Variants§
LengthMismatch(usize, usize)
Error when signal lengths do not match.
InvalidSignalCount(String)
Error when the number of input signals is invalid for the operation.
InvalidParameter(String)
Error when input parameters (e.g., mix factor, channels) are invalid.
IncompatibleFormat(String)
Error when an input signal has an incompatible format (e.g., not mono).
Trait Implementations§
Source§impl Debug for MixingError
impl Debug for MixingError
Source§impl Display for MixingError
impl Display for MixingError
Source§impl Error for MixingError
impl Error for MixingError
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 MixingError
impl RefUnwindSafe for MixingError
impl Send for MixingError
impl Sync for MixingError
impl Unpin for MixingError
impl UnwindSafe for MixingError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more