[][src]Enum soundio::ChannelLayoutId

pub enum ChannelLayoutId {
    Mono,
    Stereo,
    C2Point1,
    C3Point0,
    C3Point0Back,
    C3Point1,
    C4Point0,
    Quad,
    QuadSide,
    C4Point1,
    C5Point0Back,
    C5Point0Side,
    C5Point1,
    C5Point1Back,
    C6Point0Side,
    C6Point0Front,
    Hexagonal,
    C6Point1,
    C6Point1Back,
    C6Point1Front,
    C7Point0,
    C7Point0Front,
    C7Point1,
    C7Point1Wide,
    C7Point1WideBack,
    Octagonal,
}

Built-in channel layouts for convenience. These can be used with ChannelLayout::get_builtin().

Some values are prepended with C where they started with a digit. For example C2Point1 means 2.1 and so on.

Examples

println!("Stereo Layout: {:?}", soundio::ChannelLayout::get_builtin(soundio::ChannelLayoutId::Stereo));

Variants

Mono
Stereo
C2Point1
C3Point0
C3Point0Back
C3Point1
C4Point0
Quad
QuadSide
C4Point1
C5Point0Back
C5Point0Side
C5Point1
C5Point1Back
C6Point0Side
C6Point0Front
Hexagonal
C6Point1
C6Point1Back
C6Point1Front
C7Point0
C7Point0Front
C7Point1
C7Point1Wide
C7Point1WideBack
Octagonal

Trait Implementations

impl Clone for ChannelLayoutId[src]

impl Copy for ChannelLayoutId[src]

impl Debug for ChannelLayoutId[src]

impl Eq for ChannelLayoutId[src]

impl From<ChannelLayoutId> for SoundIoChannelLayoutId[src]

impl From<SoundIoChannelLayoutId> for ChannelLayoutId[src]

impl PartialEq<ChannelLayoutId> for ChannelLayoutId[src]

impl StructuralEq for ChannelLayoutId[src]

impl StructuralPartialEq for ChannelLayoutId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.