pub fn query_spec() -> Result<(i32, AudioFormat, i32), String> {
    let mut frequency: c_int = 0;
    let mut format: uint16_t = 0;
    let mut channels: c_int = 0;
    let ret = unsafe { sys::mixer::Mix_QuerySpec(&mut frequency, &mut format, &mut channels) };
    if ret == 0 {
        Err(get_error())
    } else {
        Ok((frequency as i32, format as AudioFormat, channels as i32))
    }
}
/// Get the actual audio format in use by the opened audio device.
Get the actual audio format in use by the opened audio device.
Get the actual audio format in use by the opened audio device .
pub fn query_spec() -> Result<(i32, AudioFormat, i32), String> {
    let mut frequency: c_int = 0;
    let mut format: uint16_t = 0;
    let mut channels: c_int = 0;
    let ret = unsafe { sys::mixer::Mix_QuerySpec(&mut frequency, &mut format, &mut channels) };
    if ret == 0 {
        Err(get_error())
    } else {
        Ok((frequency as i32, format as AudioFormat, channels as i32))
    }
}
pub fn query_spec ( ) -> Result < ( i32 , AudioFormat , i32 ) , String > { let mut frequency : c_int = 0 ; let mut format : uint16_t = 0 ; let mut channels : c_int = 0 ; let ret = unsafe { sys :: mixer :: Mix_QuerySpec ( & mut frequency , & mut format , & mut channels ) } ; if ret == 0 { Err ( get_error ( ) ) } else { Ok ( ( frequency as i32 , format as AudioFormat , channels as i32 ) ) } }
Get the actual audio format in use by the opened audio device.
Get the actual audio format in use by the opened audio device .