Mercurial > SDL_sound_CoreAudio
diff decoders/mpglib/mpg123_sdlsound.h @ 279:52b9f37998db
Removed global state variable; should be thread safe now.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 14 Mar 2002 16:38:59 +0000 |
parents | 9b6e82f7c853 |
children | 1e1724673420 |
line wrap: on
line diff
--- a/decoders/mpglib/mpg123_sdlsound.h Thu Mar 14 16:38:32 2002 +0000 +++ b/decoders/mpglib/mpg123_sdlsound.h Thu Mar 14 16:38:59 2002 +0000 @@ -96,18 +96,20 @@ int checkrange; }; +struct mpstr; /* forward declaration. */ + extern unsigned int get1bit(void); extern unsigned int getbits(int); extern unsigned int getbits_fast(int); -extern int set_pointer(long); +extern int set_pointer(long,struct mpstr *); extern unsigned char *wordpointer; extern int bitindex; extern void make_decode_tables(long scaleval); -extern int do_layer3(struct frame *fr,unsigned char *,int *); -extern int do_layer2(struct frame *fr,unsigned char *,int *); -extern int do_layer1(struct frame *fr,unsigned char *,int *); +extern int do_layer3(struct frame *fr,unsigned char *,int *,struct mpstr *); +extern int do_layer2(struct frame *fr,unsigned char *,int *,struct mpstr *); +extern int do_layer1(struct frame *fr,unsigned char *,int *,struct mpstr *); extern int decode_header(struct frame *fr,unsigned long newhead); @@ -142,9 +144,10 @@ } ch[2]; }; -extern int synth_1to1 (real *,int,unsigned char *,int *); + +extern int synth_1to1 (real *,int,unsigned char *,int *,struct mpstr *); extern int synth_1to1_8bit (real *,int,unsigned char *,int *); -extern int synth_1to1_mono (real *,unsigned char *,int *); +extern int synth_1to1_mono (real *,unsigned char *,int *,struct mpstr *); extern int synth_1to1_mono2stereo (real *,unsigned char *,int *); extern int synth_1to1_8bit_mono (real *,unsigned char *,int *); extern int synth_1to1_8bit_mono2stereo (real *,unsigned char *,int *);