pub fn open_audio(frequency: i32,
                  format: AudioFormat,
                  channels: i32,
                  chunksize: i32)
                  -> Result<(), String> {
    let ret = unsafe {
        sys::mixer::Mix_OpenAudio(frequency as c_int,
                           format,
                           channels as c_int,
                           chunksize as c_int)
    };
    if ret == 0 {
        Ok(())
    } else {
        Err(get_error())
    }
}
/// Open the mixer with a certain audio format.
///
/// * `chunksize`: It is recommended to choose values between 256 and 1024, depending on whether
///                you prefer latency or compatibility. Small values reduce latency but may not
///                work very well on older systems. For instance, a chunk size of 256 will give
///                you a latency of 6ms, while a chunk size of 1024 will give you a latency of 23ms
///                for a frequency of 44100kHz.
Open the mixer with a certain audio format.
`chunksize`: It is recommended to choose values between 256 and 1024, depending on whether
you prefer latency or compatibility. Small values reduce latency but may not
work very well on older systems. For instance, a chunk size of 256 will give
you a latency of 6ms, while a chunk size of 1024 will give you a latency of 23ms
for a frequency of 44100kHz.
Open the mixer with a certain audio format . ` chunksize ` : It is recommended to choose values between 256 and 1024 depending on whether you prefer latency or compatibility . Small values reduce latency but may not work very well on older systems . For instance a chunk size of 256 will give you a latency of 6ms while a chunk size of 1024 will give you a latency of 23ms for a frequency of 44100kHz .
pub fn open_audio(frequency: i32,
                  format: AudioFormat,
                  channels: i32,
                  chunksize: i32)
                  -> Result<(), String> {
    let ret = unsafe {
        sys::mixer::Mix_OpenAudio(frequency as c_int,
                           format,
                           channels as c_int,
                           chunksize as c_int)
    };
    if ret == 0 {
        Ok(())
    } else {
        Err(get_error())
    }
}
pub fn open_audio ( frequency : i32 , format : AudioFormat , channels : i32 , chunksize : i32 ) -> Result < ( ) , String > { let ret = unsafe { sys :: mixer :: Mix_OpenAudio ( frequency as c_int , format , channels as c_int , chunksize as c_int ) } ; if ret == 0 { Ok ( ( ) ) } else { Err ( get_error ( ) ) } }
Open the mixer with a certain audio format.
Open the mixer with a certain audio format .
frequency
i32
format
AudioFormat
channels
i32
chunksize
i32
frequency
i32
format
AudioFormat
channels
i32
chunksize
i32