Mercurial > SDL_sound_CoreAudio
comparison alt_audio_convert.h @ 366:eda146d666d1
More patches from Frank.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 21 Jun 2002 20:03:46 +0000 |
parents | f61eadea1f44 |
children | 1b463ef9bcc2 |
comparison
equal
deleted
inserted
replaced
365:f61eadea1f44 | 366:eda146d666d1 |
---|---|
23 * ranostaj@stud.uni-frankfurt.de | 23 * ranostaj@stud.uni-frankfurt.de |
24 * | 24 * |
25 * (This code blatantly abducted for SDL_sound. Thanks, Frank! --ryan.) | 25 * (This code blatantly abducted for SDL_sound. Thanks, Frank! --ryan.) |
26 */ | 26 */ |
27 | 27 |
28 #ifndef _INCLUDE_ALT_AUDIO_CONVERT_H_ | 28 #ifndef _INCLUDE_AUDIO_CONVERT_H_ |
29 #define _INCLUDE_ALT_AUDIO_CONVERT_H_ | 29 #define _INCLUDE_AUDIO_CONVERT_H_ |
30 | 30 |
31 #include "SDL_audio.h" | 31 #include "SDL_audio.h" |
32 #define Sound_AI_Loop 0x2 | 32 #define Sound_AI_Loop 0x2 |
33 #define _fsize 64 | 33 #define _fsize 32 |
34 | 34 |
35 | 35 |
36 typedef struct{ | 36 typedef struct{ |
37 Sint16 c[16][2*_fsize]; | 37 Sint16 c[16][4*_fsize]; |
38 char incr[16]; | 38 char incr[16]; |
39 int denominator; | 39 int denominator; |
40 int numerator; | 40 int numerator; |
41 } VarFilter; | 41 } VarFilter; |
42 | 42 |
73 | 73 |
74 extern DECLSPEC int Sound_BuildAudioCVT( Sound_AudioCVT *Data, | 74 extern DECLSPEC int Sound_BuildAudioCVT( Sound_AudioCVT *Data, |
75 Uint16 src_format, Uint8 src_channels, int src_rate, | 75 Uint16 src_format, Uint8 src_channels, int src_rate, |
76 Uint16 dst_format, Uint8 dst_channels, int dst_rate ); | 76 Uint16 dst_format, Uint8 dst_channels, int dst_rate ); |
77 | 77 |
78 #endif /* _INCLUDE_ALT_AUDIO_CONVERT_H_ */ | 78 #endif /* _INCLUDE_AUDIO_CONVERT_H_ */ |
79 | 79 |