[][src]Enum oboe::SharingMode

#[repr(i32)]pub enum SharingMode {
    Exclusive,
    Shared,
}

The sharing mode of the audio stream.

Variants

Exclusive

This will be the only stream using a particular source or sink. This mode will provide the lowest possible latency. You should close EXCLUSIVE streams immediately when you are not using them.

If you do not need the lowest possible latency then we recommend using Shared, which is the default.

Shared

Multiple applications can share the same device. The data from output streams will be mixed by the audio service. The data for input streams will be distributed by the audio service.

This will have higher latency than the EXCLUSIVE mode.

Trait Implementations

impl Clone for SharingMode[src]

impl Copy for SharingMode[src]

impl Debug for SharingMode[src]

impl Eq for SharingMode[src]

impl FromPrimitive for SharingMode[src]

impl PartialEq<SharingMode> for SharingMode[src]

impl StructuralEq for SharingMode[src]

impl StructuralPartialEq for SharingMode[src]

impl ToPrimitive for SharingMode[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.