[][src]Enum oboe::ChannelCount

#[repr(i32)]pub enum ChannelCount {
    Unspecified,
    Mono,
    Stereo,
}

The channel count of the audio stream. Use of this enum is convenient to avoid "magic" numbers when specifying the channel count.

For example, you can write builder.set_channel_count(ChannelCount::Stereo) rather than `builder.set_channel_count(2).

Variants

Unspecified

Audio channel count definition, use Mono or Stereo

Mono

Use this for mono audio.

Stereo

Use this for stereo audio.

Trait Implementations

impl Clone for ChannelCount[src]

impl Copy for ChannelCount[src]

impl Debug for ChannelCount[src]

impl Eq for ChannelCount[src]

impl FromPrimitive for ChannelCount[src]

impl PartialEq<ChannelCount> for ChannelCount[src]

impl StructuralEq for ChannelCount[src]

impl StructuralPartialEq for ChannelCount[src]

impl ToPrimitive for ChannelCount[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<'a, T> Desc<'a, T> for T

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.