Mercurial > SDL_sound_CoreAudio
diff alt_audio_convert.h @ 380:44ed8bdeba74
More fixes from Frank.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 03 Jul 2002 04:33:23 +0000 |
parents | 24a610dfbbfd |
children | fb519e6028e3 |
line wrap: on
line diff
--- a/alt_audio_convert.h Wed Jul 03 03:29:44 2002 +0000 +++ b/alt_audio_convert.h Wed Jul 03 04:33:23 2002 +0000 @@ -32,12 +32,15 @@ #define Sound_AI_Loop 0x2 #define _fsize 32 +typedef struct{ + Sint16 numerator; + Sint16 denominator; +} Fraction; typedef struct{ Sint16 c[16][4*_fsize]; Uint8 incr[16]; - int denominator; - int numerator; + Fraction ratio; Uint32 zero; int mask; } VarFilter; @@ -48,9 +51,11 @@ VarFilter *filter; } AdapterC; +typedef int (*Adapter) ( AdapterC Data, int length ); + typedef struct{ VarFilter filter; - int (*adapter[32]) ( AdapterC Data, int length ); + Adapter adapter[32]; /* buffer must be len*len_mult(+len_add) big */ int len_mult; int len_add;