comparison 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
comparison
equal deleted inserted replaced
278:dfe4a46f88f7 279:52b9f37998db
94 int tryresync; /* resync stream after error */ 94 int tryresync; /* resync stream after error */
95 int verbose; /* verbose level */ 95 int verbose; /* verbose level */
96 int checkrange; 96 int checkrange;
97 }; 97 };
98 98
99 struct mpstr; /* forward declaration. */
100
99 extern unsigned int get1bit(void); 101 extern unsigned int get1bit(void);
100 extern unsigned int getbits(int); 102 extern unsigned int getbits(int);
101 extern unsigned int getbits_fast(int); 103 extern unsigned int getbits_fast(int);
102 extern int set_pointer(long); 104 extern int set_pointer(long,struct mpstr *);
103 105
104 extern unsigned char *wordpointer; 106 extern unsigned char *wordpointer;
105 extern int bitindex; 107 extern int bitindex;
106 108
107 extern void make_decode_tables(long scaleval); 109 extern void make_decode_tables(long scaleval);
108 extern int do_layer3(struct frame *fr,unsigned char *,int *); 110 extern int do_layer3(struct frame *fr,unsigned char *,int *,struct mpstr *);
109 extern int do_layer2(struct frame *fr,unsigned char *,int *); 111 extern int do_layer2(struct frame *fr,unsigned char *,int *,struct mpstr *);
110 extern int do_layer1(struct frame *fr,unsigned char *,int *); 112 extern int do_layer1(struct frame *fr,unsigned char *,int *,struct mpstr *);
111 extern int decode_header(struct frame *fr,unsigned long newhead); 113 extern int decode_header(struct frame *fr,unsigned long newhead);
112 114
113 115
114 116
115 struct gr_info_s { 117 struct gr_info_s {
140 struct { 142 struct {
141 struct gr_info_s gr[2]; 143 struct gr_info_s gr[2];
142 } ch[2]; 144 } ch[2];
143 }; 145 };
144 146
145 extern int synth_1to1 (real *,int,unsigned char *,int *); 147
148 extern int synth_1to1 (real *,int,unsigned char *,int *,struct mpstr *);
146 extern int synth_1to1_8bit (real *,int,unsigned char *,int *); 149 extern int synth_1to1_8bit (real *,int,unsigned char *,int *);
147 extern int synth_1to1_mono (real *,unsigned char *,int *); 150 extern int synth_1to1_mono (real *,unsigned char *,int *,struct mpstr *);
148 extern int synth_1to1_mono2stereo (real *,unsigned char *,int *); 151 extern int synth_1to1_mono2stereo (real *,unsigned char *,int *);
149 extern int synth_1to1_8bit_mono (real *,unsigned char *,int *); 152 extern int synth_1to1_8bit_mono (real *,unsigned char *,int *);
150 extern int synth_1to1_8bit_mono2stereo (real *,unsigned char *,int *); 153 extern int synth_1to1_8bit_mono2stereo (real *,unsigned char *,int *);
151 154
152 extern int synth_2to1 (real *,int,unsigned char *,int *); 155 extern int synth_2to1 (real *,int,unsigned char *,int *);