r3991 - trunk/bse



Author: stw
Date: 2006-10-20 17:05:20 -0400 (Fri, 20 Oct 2006)
New Revision: 3991

Modified:
   trunk/bse/ChangeLog
   trunk/bse/gslfilter.c
Log:
Fri Oct 20 23:03:57 2006  Stefan Westerfeld  <stefan space twc de>

	* gslfilter.c (gsl_filter_sine_scan): Fixed a small bug in block
	volume computation.


Modified: trunk/bse/ChangeLog
===================================================================
--- trunk/bse/ChangeLog	2006-10-20 12:46:29 UTC (rev 3990)
+++ trunk/bse/ChangeLog	2006-10-20 21:05:20 UTC (rev 3991)
@@ -1,3 +1,8 @@
+Fri Oct 20 23:03:57 2006  Stefan Westerfeld  <stefan space twc de>
+
+	* gslfilter.c (gsl_filter_sine_scan): Fixed a small bug in block
+	volume computation.
+
 Fri Oct 20 13:58:38 2006  Stefan Westerfeld  <stefan space twc de>
 
 	* gslfilter.[hc] (gsl_filter_sine_scan): Changed the API and

Modified: trunk/bse/gslfilter.c
===================================================================
--- trunk/bse/gslfilter.c	2006-10-20 12:46:29 UTC (rev 3990)
+++ trunk/bse/gslfilter.c	2006-10-20 21:05:20 UTC (rev 3991)
@@ -1395,6 +1395,7 @@
 
       last_volume = volume;
 
+      volume = 0;
       for (i = 0; i < block_size; i++)
 	volume += bse_complex_abs (bse_complex (y_r[i], y_i[i]));
       volume /= block_size;




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]