Struct sdl2::audio::AudioSpecWAV
source · [−]pub struct AudioSpecWAV {
pub freq: i32,
pub format: AudioFormat,
pub channels: u8,
/* private fields */
}Fields
freq: i32format: AudioFormatchannels: u8Implementations
sourceimpl AudioSpecWAV
impl AudioSpecWAV
sourcepub fn load_wav<P: AsRef<Path>>(path: P) -> Result<AudioSpecWAV, String>
pub fn load_wav<P: AsRef<Path>>(path: P) -> Result<AudioSpecWAV, String>
Loads a WAVE from the file path.
sourcepub fn load_wav_rw(src: &mut RWops<'_>) -> Result<AudioSpecWAV, String>
pub fn load_wav_rw(src: &mut RWops<'_>) -> Result<AudioSpecWAV, String>
Loads a WAVE from the data source.
pub fn buffer(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more