Function sdl2_sys::SDL_BuildAudioCVT
[−]
[src]
pub unsafe extern "C" fn SDL_BuildAudioCVT(
cvt: *mut SDL_AudioCVT,
src_format: SDL_AudioFormat,
src_channels: Uint8,
src_rate: c_int,
dst_format: SDL_AudioFormat,
dst_channels: Uint8,
dst_rate: c_int
) -> c_int
This function takes a source format and rate and a destination format and rate, and initializes the \c cvt structure with information needed by SDL_ConvertAudio() to convert a buffer of audio data from one format to the other.
\return -1 if the format conversion is not supported, 0 if there's no conversion needed, or 1 if the audio filter is set up.