Mercurial > SDL_sound_CoreAudio
comparison alt_audio_convert.h @ 371:1b463ef9bcc2
More work from Frank.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 25 Jun 2002 17:15:03 +0000 |
parents | eda146d666d1 |
children | 24a610dfbbfd |
comparison
equal
deleted
inserted
replaced
370:12023d47b716 | 371:1b463ef9bcc2 |
---|---|
33 #define _fsize 32 | 33 #define _fsize 32 |
34 | 34 |
35 | 35 |
36 typedef struct{ | 36 typedef struct{ |
37 Sint16 c[16][4*_fsize]; | 37 Sint16 c[16][4*_fsize]; |
38 char incr[16]; | 38 Uint8 incr[16]; |
39 int denominator; | 39 int denominator; |
40 int numerator; | 40 int numerator; |
41 } VarFilter; | 41 } VarFilter; |
42 | 42 |
43 typedef struct{ | 43 typedef struct{ |
54 int (*adapter[32]) ( AdapterC Data, int length ); | 54 int (*adapter[32]) ( AdapterC Data, int length ); |
55 } SDL_AudioC; | 55 } SDL_AudioC; |
56 | 56 |
57 */ | 57 */ |
58 | 58 |
59 /* the len_* variables and the needed variable are not used internally, | |
60 they are provided for compatibility */ | |
61 | |
59 typedef struct{ | 62 typedef struct{ |
60 int needed; | 63 int needed; |
61 VarFilter filter; | 64 VarFilter filter; |
62 double len_mult; /* buffer must be len*len_mult big*/ | |
63 Uint8* buf; | 65 Uint8* buf; |
64 int len; | 66 int len; /* Length of original audio buffer */ |
65 int len_cvt; /* Length of converted audio buffer */ | 67 int len_cvt; /* Length of converted audio buffer */ |
66 int add; | 68 int len_mult; /* buffer must be len*len_mult big */ |
69 double len_ratio; /* Given len, final size is len*len_ratio */ | |
70 | |
71 double add; | |
72 double mult; | |
67 int (*adapter[32]) ( AdapterC Data, int length ); | 73 int (*adapter[32]) ( AdapterC Data, int length ); |
68 } Sound_AudioCVT; | 74 } Sound_AudioCVT; |
69 | 75 |
70 #define SDL_AI_Loop 0x01 | 76 #define SDL_AI_Loop 0x01 |
71 | 77 |