comparison mp3lib/sr1.c @ 732:e14114170e01

applied 'fakemono' patch by Bryan Chan scorpio@acm.org
author arpi_esp
date Tue, 08 May 2001 21:49:00 +0000
parents 4b18920568e2
children 7fc213046812
comparison
equal deleted inserted replaced
731:7e4e014fb5a5 732:e14114170e01
346 /******************************************************************************/ 346 /******************************************************************************/
347 347
348 static int tables_done_flag=0; 348 static int tables_done_flag=0;
349 349
350 // Init decoder tables. Call first, once! 350 // Init decoder tables. Call first, once!
351 #ifdef USE_FAKE_MONO
352 void MP3_Init(int fakemono){
353 #else
351 void MP3_Init(){ 354 void MP3_Init(){
355 #endif
352 _CpuID=CpuDetect(); 356 _CpuID=CpuDetect();
353 _i586=ipentium(); 357 _i586=ipentium();
354 #ifdef HAVE_3DNOW 358 #ifdef HAVE_3DNOW
355 _3dnow=a3dnow(); 359 _3dnow=a3dnow();
356 #endif 360 #endif
360 #ifdef HAVE_3DNOW 364 #ifdef HAVE_3DNOW
361 printf( "mp3lib: AMD 3dnow! extension %sdetected.\n",(_3dnow?"":"not ") ); 365 printf( "mp3lib: AMD 3dnow! extension %sdetected.\n",(_3dnow?"":"not ") );
362 #endif 366 #endif
363 367
364 make_decode_tables(outscale); 368 make_decode_tables(outscale);
369 #ifdef USE_FAKE_MONO
370 if (fakemono == 1)
371 fr.synth=synth_1to1_l;
372 else if (fakemono == 2)
373 fr.synth=synth_1to1_r;
374 else
375 fr.synth=synth_1to1;
376 #else
365 fr.synth=synth_1to1; 377 fr.synth=synth_1to1;
378 #endif
366 fr.synth_mono=synth_1to1_mono2stereo; 379 fr.synth_mono=synth_1to1_mono2stereo;
367 fr.down_sample=0; 380 fr.down_sample=0;
368 fr.down_sample_sblimit = SBLIMIT>>(fr.down_sample); 381 fr.down_sample_sblimit = SBLIMIT>>(fr.down_sample);
369 init_layer2(); 382 init_layer2();
370 init_layer3(fr.down_sample_sblimit); 383 init_layer3(fr.down_sample_sblimit);