summaryrefslogtreecommitdiffstats
path: root/mp3lib/decod386.c
diff options
context:
space:
mode:
Diffstat (limited to 'mp3lib/decod386.c')
-rw-r--r--mp3lib/decod386.c34
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];