#[repr(usize)]pub enum AudioChannelLayout {
Mono = 1,
Stereo = 2,
Surround30 = 3,
Surround40 = 4,
Surround51 = 6,
Surround71 = 8,
}Expand description
Represents common audio channel layouts, where the enum variant’s repr(usize) corresponds to the number of channels in that layout.
Variants§
Mono = 1
Single channel audio (monaural).
Stereo = 2
Two-channel audio (left and right).
Surround30 = 3
Three-channel surround sound (left, right, center).
Surround40 = 4
Four-channel surround sound (left, right, center, rear).
Surround51 = 6
Six-channel surround sound (5.1: left, right, center, LFE, left surround, right surround).
Surround71 = 8
Eight-channel surround sound (7.1: adds rear left and rear right).
Trait Implementations§
Source§impl Clone for AudioChannelLayout
impl Clone for AudioChannelLayout
Source§fn clone(&self) -> AudioChannelLayout
fn clone(&self) -> AudioChannelLayout
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 AudioChannelLayout
impl Debug for AudioChannelLayout
Source§impl Default for AudioChannelLayout
impl Default for AudioChannelLayout
Source§impl PartialEq for AudioChannelLayout
impl PartialEq for AudioChannelLayout
impl Copy for AudioChannelLayout
impl Eq for AudioChannelLayout
impl StructuralPartialEq for AudioChannelLayout
Auto Trait Implementations§
impl Freeze for AudioChannelLayout
impl RefUnwindSafe for AudioChannelLayout
impl Send for AudioChannelLayout
impl Sync for AudioChannelLayout
impl Unpin for AudioChannelLayout
impl UnwindSafe for AudioChannelLayout
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