pub enum MixerError {
UnalignedSamples(usize, u8),
ZeroChannels,
}Expand description
Failure modes for the audio mixer.
Variants§
UnalignedSamples(usize, u8)
Sample buffer length wasn’t a multiple of channel count.
ZeroChannels
Mixer’s output channel count was zero (rejected at config).
Trait Implementations§
Source§impl Debug for MixerError
impl Debug for MixerError
Source§impl Display for MixerError
impl Display for MixerError
Source§impl Error for MixerError
impl Error for MixerError
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 MixerError
impl RefUnwindSafe for MixerError
impl Send for MixerError
impl Sync for MixerError
impl Unpin for MixerError
impl UnsafeUnpin for MixerError
impl UnwindSafe for MixerError
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