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

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

Fields

freq: i32 format: AudioFormat channels: u8

Methods

impl AudioSpecWAV
[src]

fn load_wav<P: AsRef<Path>>(path: P) -> SdlResult<AudioSpecWAV>

Loads a WAVE from the file path.

fn load_wav_rw(src: &mut RWops) -> SdlResult<AudioSpecWAV>

Loads a WAVE from the data source.

fn get_buffer(&self) -> &[u8]

Trait Implementations

impl Drop for AudioSpecWAV
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more