Mercurial > mplayer.hg
comparison mp3lib/decod386.c @ 12291:4e6f75467d64
reorder funcs to avoid warnings/errors (gccs are nowadays are more pickier about code than gcc2.95 with -ansi)
author | alex |
---|---|
date | Mon, 26 Apr 2004 10:08:16 +0000 |
parents | 83822b2b0a17 |
children | f60bc2314146 |
comparison
equal
deleted
inserted
replaced
12290:de133f53c88f | 12291:4e6f75467d64 |
---|---|
110 samples+=4; | 110 samples+=4; |
111 } | 111 } |
112 | 112 |
113 return ret; | 113 return ret; |
114 } | 114 } |
115 | |
116 | |
117 #ifdef USE_FAKE_MONO | |
118 static int synth_1to1_l(real *bandPtr,int channel,unsigned char *out,int *pnt) | |
119 { | |
120 int i,ret; | |
121 | |
122 ret = synth_1to1(bandPtr,channel,out,pnt); | |
123 out = out + *pnt - 128; | |
124 | |
125 for(i=0;i<32;i++) { | |
126 ((short *)out)[1] = ((short *)out)[0]; | |
127 out+=4; | |
128 } | |
129 | |
130 return ret; | |
131 } | |
132 | |
133 | |
134 static int synth_1to1_r(real *bandPtr,int channel,unsigned char *out,int *pnt) | |
135 { | |
136 int i,ret; | |
137 | |
138 ret = synth_1to1(bandPtr,channel,out,pnt); | |
139 out = out + *pnt - 128; | |
140 | |
141 for(i=0;i<32;i++) { | |
142 ((short *)out)[0] = ((short *)out)[1]; | |
143 out+=4; | |
144 } | |
145 | |
146 return ret; | |
147 } | |
148 #endif | |
149 | 115 |
150 static synth_func_t synth_func; | 116 static synth_func_t synth_func; |
151 | 117 |
152 #if defined(CAN_COMPILE_X86_ASM) | 118 #if defined(CAN_COMPILE_X86_ASM) |
153 static int synth_1to1_MMX( real *bandPtr,int channel,short * samples) | 119 static int synth_1to1_MMX( real *bandPtr,int channel,short * samples) |
275 | 241 |
276 return clip; | 242 return clip; |
277 | 243 |
278 } | 244 } |
279 | 245 |
246 #ifdef USE_FAKE_MONO | |
247 static int synth_1to1_l(real *bandPtr,int channel,unsigned char *out,int *pnt) | |
248 { | |
249 int i,ret; | |
250 | |
251 ret = synth_1to1(bandPtr,channel,out,pnt); | |
252 out = out + *pnt - 128; | |
253 | |
254 for(i=0;i<32;i++) { | |
255 ((short *)out)[1] = ((short *)out)[0]; | |
256 out+=4; | |
257 } | |
258 | |
259 return ret; | |
260 } | |
261 | |
262 static int synth_1to1_r(real *bandPtr,int channel,unsigned char *out,int *pnt) | |
263 { | |
264 int i,ret; | |
265 | |
266 ret = synth_1to1(bandPtr,channel,out,pnt); | |
267 out = out + *pnt - 128; | |
268 | |
269 for(i=0;i<32;i++) { | |
270 ((short *)out)[0] = ((short *)out)[1]; | |
271 out+=4; | |
272 } | |
273 | |
274 return ret; | |
275 } | |
276 #endif |