Rev 228 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 228 | Rev 286 | ||
---|---|---|---|
Line 181... | Line 181... | ||
181 | outremain = 0x40000 ; |
181 | outremain = 0x40000 ; |
182 | outbuf = UserAlloc(outremain); |
182 | outbuf = UserAlloc(outremain); |
183 | touch(outbuf, outremain); |
183 | touch(outbuf, outremain); |
184 | make_decode_tables(32767); |
184 | make_decode_tables(32767); |
185 | init_layer2(); |
185 | init_layer2(); |
186 | init_layer3(SBLIMIT); |
186 | init_layer3(32); |
187 | fr.single = -1; |
187 | fr.single = -1; |
188 | }; |
188 | }; |
Line 189... | Line 189... | ||
189 | 189 | ||
Line 264... | Line 264... | ||
264 | void play_mp3() |
264 | void play_mp3() |
265 | { char *outPtr; |
265 | { char *outPtr; |
266 | int totalout; |
266 | int totalout; |
267 | int outcount; |
267 | int outcount; |
Line 268... | Line 268... | ||
268 | 268 | ||
- | 269 | // memset(&fr,0,sizeof(fr)); |
|
- | 270 | fr.down_sample_sblimit = 32; |
|
- | 271 | fr.single = -1; |
|
Line 269... | Line 272... | ||
269 | set_reader(&rd, first_sync); |
272 | reset_mpg(); |
270 | 273 | ||
271 | outPtr = outbuf; |
274 | outPtr = outbuf; |
- | 275 | totalout=0; |
|
- | 276 | done = 0; |
|
- | 277 | outremain=0x40000; |
|
Line -... | Line 278... | ||
- | 278 | ||
272 | totalout=0; |
279 | memset(outbuf,0,0x40000); |
273 | done = 0; |
280 | |
274 | 281 | set_reader(&rd, 0); //;first_sync); |
|
Line 275... | Line 282... | ||
275 | memset(outbuf,0,0x10000); |
282 | SetBuffer(hSound,hBuff,outbuf,0,0x8000); |
276 | SetBuffer(hSound,hBuff,outbuf,0,0x10000); |
283 | SetBuffer(hSound,hBuff,outbuf,0x8000,0x8000); |
277 | PlayBuffer(hSound, hBuff); |
284 | PlayBuffer(hSound, hBuff); |
Line 337... | Line 344... | ||
337 | 344 | ||
Line 338... | Line 345... | ||
338 | // offset = 44; |
345 | // offset = 44; |
339 | 346 | ||
- | 347 | // read_file (fname,outbuf,offset,32*1024,0); |
|
340 | // read_file (fname,outbuf,offset,32*1024,0); |
348 | // offset+=32*1024; |
341 | // offset+=32*1024; |
349 | set_reader(&rd,44); |
342 | stream_read_raw(&rd,outbuf,32768); |
350 | stream_read_raw(&rd,outbuf,32768); |
343 | SetBuffer(hSound,hBuff,outbuf,0,0x8000); |
351 | SetBuffer(hSound,hBuff,outbuf,0,0x8000); |