pub enum ChannelLayout {
Interleaved,
NonInterleaved,
}Expand description
Describes how multi-channel audio data is organized in memory
Variants§
Interleaved
Samples from different channels are stored sequentially (LRLRLR…) This is the most common format for audio files and streaming
NonInterleaved
Samples from each channel are stored in separate contiguous blocks (LLL…RRR…) This format is often preferred for digital signal processing
Implementations§
Source§impl ChannelLayout
impl ChannelLayout
Sourcepub const fn is_interleaved(&self) -> bool
pub const fn is_interleaved(&self) -> bool
Returns true if the layout is interleaved
Sourcepub const fn is_non_interleaved(&self) -> bool
pub const fn is_non_interleaved(&self) -> bool
Returns true if the layout is non-interleaved
Trait Implementations§
Source§impl Clone for ChannelLayout
impl Clone for ChannelLayout
Source§fn clone(&self) -> ChannelLayout
fn clone(&self) -> ChannelLayout
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 ChannelLayout
impl Debug for ChannelLayout
Source§impl Default for ChannelLayout
impl Default for ChannelLayout
Source§fn default() -> ChannelLayout
fn default() -> ChannelLayout
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChannelLayout
impl PartialEq for ChannelLayout
impl Copy for ChannelLayout
impl Eq for ChannelLayout
impl StructuralPartialEq for ChannelLayout
Auto Trait Implementations§
impl Freeze for ChannelLayout
impl RefUnwindSafe for ChannelLayout
impl Send for ChannelLayout
impl Sync for ChannelLayout
impl Unpin for ChannelLayout
impl UnwindSafe for ChannelLayout
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