Mercurial > SDL_sound_CoreAudio
diff alt_audio_convert.h @ 420:5b8a07b5162e
Latest altcvt from Frank.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 26 Sep 2002 04:34:35 +0000 |
parents | fb519e6028e3 |
children | a65440b3a057 |
line wrap: on
line diff
--- a/alt_audio_convert.h Thu Sep 26 04:34:25 2002 +0000 +++ b/alt_audio_convert.h Thu Sep 26 04:34:35 2002 +0000 @@ -32,8 +32,6 @@ #define Sound_AI_Loop 0x2 #define _fsize 32 -#include "SDL_sound.h" - typedef struct{ Sint16 numerator; Sint16 denominator; @@ -43,7 +41,6 @@ Sint16 c[16][4*_fsize]; Uint8 incr[16]; Fraction ratio; - Uint32 zero; int mask; } VarFilter; @@ -57,6 +54,7 @@ typedef struct{ VarFilter filter; + int filter_index; Adapter adapter[32]; /* buffer must be len*len_mult(+len_add) big */ int len_mult; @@ -74,11 +72,24 @@ #define SDL_SOUND_Loop 0x10 +#ifndef SNDDECLSPEC +#define SNDDECLSPEC DECLSPEC +#endif + extern SNDDECLSPEC int Sound_ConvertAudio( Sound_AudioCVT *Data ); +extern SNDDECLSPEC int Sound_AltConvertAudio( Sound_AudioCVT *Data, + Uint8* buffer, int length, int mode ); + extern SNDDECLSPEC int Sound_BuildAudioCVT( Sound_AudioCVT *Data, Uint16 src_format, Uint8 src_channels, int src_rate, - Uint16 dst_format, Uint8 dst_channels, int dst_rate, Uint32 dst_size ); + Uint16 dst_format, Uint8 dst_channels, int dst_rate ); + +extern SNDDECLSPEC int Sound_AltBuildAudioCVT( Sound_AudioCVT *Data, + SDL_AudioSpec src, SDL_AudioSpec dst ); + +extern SNDDECLSPEC int Sound_estimateBufferSize( Sound_AudioCVT *Data, + int length ); #endif /* _INCLUDE_AUDIO_CONVERT_H_ */