pub enum AudioConvError {
InvalidArguments(String),
FrameChannelsNotSame,
ChannelsNotInSameSize,
TruncatedSamples,
}
Variants§
InvalidArguments(String)
- The parameters are invalid
FrameChannelsNotSame
- When the input audio is an array of audio frames, each frame should have the same channels, otherwise, this error occurs.
ChannelsNotInSameSize
- When the input audio is an array of individual waveforms, each waveform should have the same length.
TruncatedSamples
- When the input audio is the interleaved sample array, the number of samples must be divisible by the number of channels
Trait Implementations§
Source§impl Clone for AudioConvError
impl Clone for AudioConvError
Source§fn clone(&self) -> AudioConvError
fn clone(&self) -> AudioConvError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioConvError
impl Debug for AudioConvError
Source§impl PartialEq for AudioConvError
impl PartialEq for AudioConvError
impl StructuralPartialEq for AudioConvError
Auto Trait Implementations§
impl Freeze for AudioConvError
impl RefUnwindSafe for AudioConvError
impl Send for AudioConvError
impl Sync for AudioConvError
impl Unpin for AudioConvError
impl UnwindSafe for AudioConvError
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