some tuning...
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 12 Aug 2003 17:17:13 +0000 (17:17 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 12 Aug 2003 17:17:13 +0000 (17:17 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@5209 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/denoise.c

index b5ae055..4a41429 100644 (file)
@@ -356,11 +356,13 @@ int speex_denoise(SpeexDenoiseState *st, float *x)
       else
          min_gamma *= 4.;
 #else
-      min_gamma = .5*fabs(mean_prior - mean_post);
-      if (min_gamma>.5)
-         min_gamma = .5;
+      min_gamma = .2*fabs(mean_prior - mean_post)*fabs(mean_prior - mean_post);
+      if (min_gamma>.6)
+         min_gamma = .6;
+      if (min_gamma<.01)
+         min_gamma = .01;
 #endif
-      /*min_gamma = .5;*/
+      /*min_gamma = .2;*/
 
       if (gamma<min_gamma)
          gamma=min_gamma;