pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Chunk, String> {
        let raw = unsafe { sys::mixer::Mix_LoadWAV_RW(try!(RWops::from_file(path, "rb")).raw(), 0) };
        if raw.is_null() {
            Err(get_error())
        } else {
            Ok(Chunk {
                raw: raw,
                owned: true,
            })
        }
    }
/// Load file for use as a sample.
Load file for use as a sample.
Load file for use as a sample .
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Chunk, String> {
        let raw = unsafe { sys::mixer::Mix_LoadWAV_RW(try!(RWops::from_file(path, "rb")).raw(), 0) };
        if raw.is_null() {
            Err(get_error())
        } else {
            Ok(Chunk {
                raw: raw,
                owned: true,
            })
        }
    }
pub fn from_file < P : AsRef < Path > > ( path : P ) -> Result < Chunk , String > { let raw = unsafe { sys :: mixer :: Mix_LoadWAV_RW ( try ! ( RWops from_file ( path " " ) ) . raw ( ) , 0 ) } ; if raw . is_null ( ) { Err ( get_error ( ) ) } else { Ok ( Chunk { raw : raw , owned : true , } ) } }
Load file for use as a sample.
Load file for use as a sample .
path
P
path
P