Mercurial > SDL_sound_CoreAudio
comparison SDL_sound_internal.h @ 340:5a72981b8cba
Added optional, experimental audio conversion routines by Frank Ranostaj.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 20 May 2002 16:21:58 +0000 |
parents | 31cc49d7d0ce |
children | cbb15ecf423a |
comparison
equal
deleted
inserted
replaced
339:e3ac0d41668c | 340:5a72981b8cba |
---|---|
195 int (*seek)(Sound_Sample *sample, Uint32 ms); | 195 int (*seek)(Sound_Sample *sample, Uint32 ms); |
196 } Sound_DecoderFunctions; | 196 } Sound_DecoderFunctions; |
197 | 197 |
198 | 198 |
199 /* A structure to hold a set of audio conversion filters and buffers */ | 199 /* A structure to hold a set of audio conversion filters and buffers */ |
200 | 200 #if (defined SOUND_USE_ALTCVT) |
201 #include "alt_audio_convert.h" | |
202 #else | |
201 typedef struct Sound_AudioCVT | 203 typedef struct Sound_AudioCVT |
202 { | 204 { |
203 int needed; /* Set to 1 if conversion possible */ | 205 int needed; /* Set to 1 if conversion possible */ |
204 Uint16 src_format; /* Source audio format */ | 206 Uint16 src_format; /* Source audio format */ |
205 Uint16 dst_format; /* Target audio format */ | 207 Uint16 dst_format; /* Target audio format */ |
210 int len_mult; /* buffer must be len*len_mult big */ | 212 int len_mult; /* buffer must be len*len_mult big */ |
211 double len_ratio; /* Given len, final size is len*len_ratio */ | 213 double len_ratio; /* Given len, final size is len*len_ratio */ |
212 void (*filters[20])(struct Sound_AudioCVT *cvt, Uint16 *format); | 214 void (*filters[20])(struct Sound_AudioCVT *cvt, Uint16 *format); |
213 int filter_index; /* Current audio conversion function */ | 215 int filter_index; /* Current audio conversion function */ |
214 } Sound_AudioCVT; | 216 } Sound_AudioCVT; |
215 | 217 #endif |
216 | 218 |
217 typedef struct __SOUND_SAMPLEINTERNAL__ | 219 typedef struct __SOUND_SAMPLEINTERNAL__ |
218 { | 220 { |
219 Sound_Sample *next; | 221 Sound_Sample *next; |
220 Sound_Sample *prev; | 222 Sound_Sample *prev; |