SDL_BuildAudioCVT - Initializes a SDL_AudioCVT structure for conversion
Contents
Description
Before an SDL_AudioCVT structure can be used to convert audio data it must be initialized with source and
destination information.
src_format and dst_format are the source and destination format of the conversion. (For information on
audio formats see SDL_AudioSpec). src_channels and dst_channels are the number of channels in the source
and destination formats. Finally, src_rate and dst_rate are the frequency or samples-per-second of the
source and destination formats. Once again, see SDL_AudioSpec.
Examples
See SDL_ConvertAudio.
Name
SDL_BuildAudioCVT - Initializes a SDL_AudioCVT structure for conversion
Return Values
Returns -1 if the filter could not be built or 1 if it could.
See Also
SDL_ConvertAudio, SDL_AudioCVT
SDL Tue 11 Sep 2001, 22:58 SDL_BuildAudioCVT(3)
Synopsis
#include"SDL.h"intSDL_BuildAudioCVT(SDL_AudioCVT*cvt,Uint16src_format,Uint8src_channels,intsrc_rate,Uint16dst_format,Uint8dst_channels,intdst_rate);
