[][src]Struct sdl2::audio::AudioSpecDesired

pub struct AudioSpecDesired {
    pub freq: Option<i32>,
    pub channels: Option<u8>,
    pub samples: Option<u16>,
}

Fields

freq: Option<i32>

DSP frequency (samples per second). Set to None for the device's fallback frequency.

channels: Option<u8>

Number of separate audio channels. Set to None for the device's fallback number of channels.

samples: Option<u16>

Audio buffer size in samples (power of 2). Set to None for the device's fallback sample size.

Trait Implementations

impl Clone for AudioSpecDesired[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioSpecDesired

impl Send for AudioSpecDesired

impl Sync for AudioSpecDesired

impl Unpin for AudioSpecDesired

impl UnwindSafe for AudioSpecDesired

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.