[Mplayer-cvslog] CVS: main/mp3lib decod386.c,1.1.1.1,1.2 mp3.h,1.1.1.1,1.2 sr1.c,1.2,1.3

GEREOFFY arpi_esp at users.sourceforge.net
Tue May 8 23:49:02 CEST 2001


Update of /cvsroot/mplayer/main/mp3lib
In directory usw-pr-cvs1:/tmp/cvs-serv26164/mp3lib

Modified Files:
	decod386.c mp3.h sr1.c 
Log Message:
applied 'fakemono' patch by Bryan Chan scorpio at acm.org

Index: decod386.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/decod386.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** decod386.c	2001/02/24 20:31:02	1.1.1.1
--- decod386.c	2001/05/08 21:49:00	1.2
***************
*** 73,76 ****
--- 73,110 ----
  
  
+ #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)
  {

Index: mp3.h
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/mp3.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** mp3.h	2001/02/24 20:31:06	1.1.1.1
--- mp3.h	2001/05/08 21:49:00	1.2
***************
*** 2,6 ****
--- 2,10 ----
  
  /* decoder level: */
+ #ifdef USE_FAKE_MONO
+ extern void MP3_Init(int fakemono);
+ #else
  extern void MP3_Init();
+ #endif
  extern int MP3_Open(char *filename,int buffsize);
  extern void MP3_SeekFrame(int num,int dir);

Index: sr1.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/sr1.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** sr1.c	2001/03/10 21:06:28	1.2
--- sr1.c	2001/05/08 21:49:00	1.3
***************
*** 349,353 ****
--- 349,357 ----
  
  // Init decoder tables.  Call first, once!
+ #ifdef USE_FAKE_MONO
+ void MP3_Init(int fakemono){
+ #else
  void MP3_Init(){
+ #endif
      _CpuID=CpuDetect();
      _i586=ipentium();
***************
*** 363,367 ****
--- 367,380 ----
  
      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;


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list