[][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]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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