1SDL_BuildAudioCVT(3) SDL API Reference SDL_BuildAudioCVT(3)
2
3
4
6 SDL_BuildAudioCVT - Initializes a SDL_AudioCVT structure for conversion
7
9 #include "SDL.h"
10
11 int SDL_BuildAudioCVT(SDL_AudioCVT *cvt, Uint16 src_format, Uint8
12 src_channels, int src_rate, Uint16 dst_format, Uint8 dst_channels, int
13 dst_rate);
14
16 Before an SDL_AudioCVT structure can be used to convert audio data it
17 must be initialized with source and destination information.
18
19 src_format and dst_format are the source and destination format of the
20 conversion. (For information on audio formats see SDL_AudioSpec).
21 src_channels and dst_channels are the number of channels in the source
22 and destination formats. Finally, src_rate and dst_rate are the fre‐
23 quency or samples-per-second of the source and destination formats.
24 Once again, see SDL_AudioSpec.
25
27 Returns -1 if the filter could not be built or 1 if it could.
28
30 See SDL_ConvertAudio.
31
33 SDL_ConvertAudio, SDL_AudioCVT
34
35
36
37SDL Tue 11 Sep 2001, 22:58 SDL_BuildAudioCVT(3)