Mercurial > mplayer.hg
diff 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 |
line wrap: on
line diff
--- a/mp3lib/sr1.c Tue May 08 21:47:51 2001 +0000 +++ b/mp3lib/sr1.c Tue May 08 21:49:00 2001 +0000 @@ -348,7 +348,11 @@ static int tables_done_flag=0; // Init decoder tables. Call first, once! +#ifdef USE_FAKE_MONO +void MP3_Init(int fakemono){ +#else void MP3_Init(){ +#endif _CpuID=CpuDetect(); _i586=ipentium(); #ifdef HAVE_3DNOW @@ -362,7 +366,16 @@ #endif make_decode_tables(outscale); +#ifdef USE_FAKE_MONO + if (fakemono == 1) + fr.synth=synth_1to1_l; + else if (fakemono == 2) + fr.synth=synth_1to1_r; + else + fr.synth=synth_1to1; +#else fr.synth=synth_1to1; +#endif fr.synth_mono=synth_1to1_mono2stereo; fr.down_sample=0; fr.down_sample_sblimit = SBLIMIT>>(fr.down_sample);