pub unsafe extern "C" fn SDL_ConvertAudio(
    cvt: *mut SDL_AudioCVT
) -> c_int
Expand description

Performs an in-place audio conversion.

Once you have initialized the cvt structure using SDL_BuildAudioCVT, created an audio buffer cvt->buf, and filled it with cvt->len bytes of audio data in the source format, this function will convert it in-place to the desired format.

The data conversion may expand the size of the audio data, so the buffer cvt->buf should be allocated after the cvt structure is initialized by SDL_BuildAudioCVT, and should be cvt->len * cvt->len_mult bytes long.

Return: 0 on success, or -1 if cvt->buf is NULL.