changeset 1012:a29125f98180 trunk

[svn] - fix overcompression in the modified iir routines
author nenolod
date Tue, 09 May 2006 08:48:01 -0700
parents 46fa5a29eae1
children 13281963f56f
files audacious/iir_fpu.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/iir_fpu.c	Mon May 08 21:05:33 2006 -0700
+++ b/audacious/iir_fpu.c	Tue May 09 08:48:01 2006 -0700
@@ -101,12 +101,12 @@
     {
       pcm[channel] = data[index+channel] * 4;
       /* Preamp gain */
-      pcm[channel] *= preamp[channel];
+      pcm[channel] *= (preamp[channel] / 2);
       
       /* add random noise */
       pcm[channel] += dither[di];
 
-      out[channel] = 0.;
+      out[channel] = 0.0;
       /* For each band */
       for (band = 0; band < band_count; band++)
       {