#[non_exhaustive]pub enum Layout {
Mono,
Stereo,
Discrete(NonZeroU32),
TwoPointOne,
ThreePointZero,
Quad,
FourPointZero,
FivePointZero,
FivePointOne,
SixPointOne,
SevenPointOne,
}Expand description
Speaker meaning and interleaving order for PCM channels.
Named layouts interleave in the SMPTE/WAVE order (front left, front right, center, LFE, back left, back right, back center, side left, side right), keeping only the speakers the layout has. Every decoder reorders its codec’s native order into this one.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Mono
One center channel.
Stereo
Left then right channels.
Discrete(NonZeroU32)
Channels with no declared speaker positions, in source order.
Passes through unchanged but can’t be remixed into another layout.
TwoPointOne
2.1: left, right, LFE.
ThreePointZero
3.0: left, right, center.
Quad
Quad: left, right, back left, back right.
FourPointZero
4.0: left, right, center, back center.
FivePointZero
5.0: left, right, center, side left, side right.
FivePointOne
5.1: left, right, center, LFE, side left, side right.
SixPointOne
6.1: left, right, center, LFE, back center, side left, side right.
SevenPointOne
7.1: left, right, center, LFE, back left, back right, side left, side right.
Implementations§
Source§impl Layout
impl Layout
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.