[−][src]Struct sdl2::audio::AudioSpecWAV
Fields
freq: i32
format: AudioFormat
channels: 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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,