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
Expand description

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. 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.