[Mplayer-cvslog] CVS: main/libao2 pl_eq.c,1.4,1.5 eq.h,1.1,1.2

Anders Johansson anders at mplayerhq.hu
Thu Sep 26 12:13:02 CEST 2002


Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv2745

Modified Files:
	pl_eq.c eq.h 
Log Message:
Correction of spelling errors and removal of old code

Index: pl_eq.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/pl_eq.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pl_eq.c	30 Jul 2002 11:48:18 -0000	1.4
+++ pl_eq.c	26 Sep 2002 10:12:50 -0000	1.5
@@ -43,7 +43,7 @@
 #define KM  10    // Max number of octaves
 
 #define Q   1.2247 /* Q value for band-pass filters 1.2247=(3/2)^(1/2)
-		      gives 4db suppression @ Fc*2 and Fc/2 */
+		      gives 4dB suppression @ Fc*2 and Fc/2 */
 
 // Center frequencies for band-pass filters
 #define CF  {31.25,62.5,125,250,500,1000,2000,4000,8000,16000}
@@ -146,13 +146,6 @@
   // Reset buffers
   reset();
 
-#if 0
-  // Reset gain factors
-  for(c=0;c<pl_eq.channels;c++)
-    for(k=0;k<pl_eq.K;k++)
-      pl_eq.g[c][k]=0;
-#endif
-
   // Tell ao_plugin how much this plugin adds to the overall time delay
   ao_plugin_data.delay_fix-=2/((float)pl_eq.channels*(float)ao_plugin_data.rate);
   // Print some cool remark of what the plugin does
@@ -179,8 +172,7 @@
     while(in < end){
       register int16_t k   = 0;	   	// Frequency band index
       register int32_t yt  = 0;    	// Total output from filters
-      register int16_t x   = *in; 	/* Current input sample scale
-					   to prevent overflow in wq */
+      register int16_t x   = *in; 	// Current input sample
       in+=nch;
 
       // Run the filters 

Index: eq.h
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/eq.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- eq.h	15 Jun 2002 06:15:07 -0000	1.1
+++ eq.h	26 Sep 2002 10:12:50 -0000	1.2
@@ -13,7 +13,7 @@
 
 typedef struct equalizer_s
 {
-  float gain;   	// Gain in db  -15 - 15 
+  float gain;   	// Gain in dB  -15 - 15 
   int	channel; 	// Channel number 0 - 5 
   int 	band;		// Frequency band 0 - 9
 }equalizer_t;




More information about the MPlayer-cvslog mailing list