GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SDL_AudioCVT(3) SDL API Reference SDL_AudioCVT(3)

SDL_AudioCVT - Audio Conversion Structure

typedef struct{

int needed;
Uint16 src_format;
Uint16 dest_format;
double rate_incr;
Uint8 *buf;
int len;
int len_cvt;
int len_mult;
double len_ratio;
void (*filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
int filter_index; } SDL_AudioCVT;

Set to one if the conversion is possible
Audio format of the source
Audio format of the destination
Rate conversion increment
Audio buffer
Length of the original audio buffer in bytes
Length of converted audio buffer in bytes (calculated)
buf must be len*len_mult bytes in size(calculated)
Final audio size is len*len_ratio
Pointers to functions needed for this conversion
Current conversion function

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.

SDL_BuildAudioCVT, SDL_ConvertAudio, SDL_AudioSpec

Tue 11 Sep 2001, 22:58 SDL

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.