Function fermium::audio::SDL_BuildAudioCVT [−][src]
pub unsafe extern "C" fn SDL_BuildAudioCVT(
cvt: *mut SDL_AudioCVT,
src_format: SDL_AudioFormat,
src_channels: u8,
src_rate: c_int,
dst_format: SDL_AudioFormat,
dst_channels: u8,
dst_rate: c_int
) -> c_int
Expand description
Initializes an SDL_AudioCVT
.
This function takes a source format and rate and a destination format
and rate, and initializes the cvt
structure with information needed
by SDL_ConvertAudio
to convert a buffer of audio data from one format
to the other. An unsupported format causes an error and -1 will be
returned.
Return: 0 if no conversion is needed, 1 if the audio filter is set up, or -1 on error.