[][src]Struct sdl2::audio::AudioSpecWAV

pub struct AudioSpecWAV {
    pub freq: i32,
    pub format: AudioFormat,
    pub channels: u8,
    // some fields omitted
}

Fields

freq: i32format: AudioFormatchannels: u8

Methods

impl AudioSpecWAV[src]

pub fn load_wav<P: AsRef<Path>>(path: P) -> Result<AudioSpecWAV, String>[src]

Loads a WAVE from the file path.

pub fn load_wav_rw(src: &mut RWops) -> Result<AudioSpecWAV, String>[src]

Loads a WAVE from the data source.

pub fn buffer(&self) -> &[u8][src]

Trait Implementations

impl Drop for AudioSpecWAV[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioSpecWAV

impl !Send for AudioSpecWAV

impl !Sync for AudioSpecWAV

impl Unpin for AudioSpecWAV

impl UnwindSafe for AudioSpecWAV

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, 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.