diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-08 21:49:00 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-08 21:49:00 +0000 |
commit | a158f5d74742a50399dc7ba75843675127bfb9b6 (patch) | |
tree | fd5972032adb2b4f08bc7e2dc73e2c03de54d55a /mp3lib/decod386.c | |
parent | 3040f42cd6854b3f918dda2de753585b62dd9171 (diff) | |
download | mpv-a158f5d74742a50399dc7ba75843675127bfb9b6.tar.bz2 mpv-a158f5d74742a50399dc7ba75843675127bfb9b6.tar.xz |
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@733 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/decod386.c')
-rw-r--r-- | mp3lib/decod386.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mp3lib/decod386.c b/mp3lib/decod386.c index f1a7e26b76..0dceb11a71 100644 --- a/mp3lib/decod386.c +++ b/mp3lib/decod386.c @@ -72,6 +72,40 @@ static int synth_1to1_mono2stereo(real *bandPtr,unsigned char *samples,int *pnt) } +#ifdef USE_FAKE_MONO +static int synth_1to1_l(real *bandPtr,int channel,unsigned char *out,int *pnt) +{ + int i,ret; + + ret = synth_1to1(bandPtr,channel,out,pnt); + out = out + *pnt - 128; + + for(i=0;i<32;i++) { + ((short *)out)[1] = ((short *)out)[0]; + out+=4; + } + + return ret; +} + + +static int synth_1to1_r(real *bandPtr,int channel,unsigned char *out,int *pnt) +{ + int i,ret; + + ret = synth_1to1(bandPtr,channel,out,pnt); + out = out + *pnt - 128; + + for(i=0;i<32;i++) { + ((short *)out)[0] = ((short *)out)[1]; + out+=4; + } + + return ret; +} +#endif + + static int synth_1to1(real *bandPtr,int channel,unsigned char *out,int *pnt) { static real buffs[2][2][0x110]; |