[][src]Struct sdl2::audio::AudioSpec

pub struct AudioSpec {
    pub freq: i32,
    pub format: AudioFormat,
    pub channels: u8,
    pub silence: u8,
    pub samples: u16,
    pub size: u32,
}

Fields

freq: i32format: AudioFormatchannels: u8silence: u8

The silence value calculated by SDL2. Note that it's inconvenient to use if your channel type is not u8 and incorrect in case of u16. You're likely to find the AudioFormatNum.SILENCE associated constant more useful.

samples: u16size: u32

Trait Implementations

impl Clone for AudioSpec[src]

impl Copy for AudioSpec[src]

impl Debug for AudioSpec[src]

impl Eq for AudioSpec[src]

impl Hash for AudioSpec[src]

impl PartialEq<AudioSpec> for AudioSpec[src]

impl StructuralEq for AudioSpec[src]

impl StructuralPartialEq for AudioSpec[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioSpec

impl Send for AudioSpec

impl Sync for AudioSpec

impl Unpin for AudioSpec

impl UnwindSafe for AudioSpec

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.