needed Set to one if the conversion is possible
src_format Audio format of the source
dest_format Audio format of the destination
rate_incr Rate conversion increment
buf Audio buffer
len Length of the original audio buffer in bytes
len_cvt Length of converted audio buffer in bytes (calculated)
len_mult buf must be len*len_mult bytes in size(calculated)
len_ratio Final audio size is len*len_ratio
Pointers to functions needed for this conversion
The SDL_AudioCVT is used to convert audio data between different formats. A SDL_AudioCVT structure is created with the SDL_BuildAudioCVT function, while the actual conversion is done by the SDL_!ConvertAudio? function.
Many of the fields in the SDL_AudioCVT structure should be considered private and their function will not be discussed here.