less aggressive in adaptation
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 18 Nov 2005 09:55:57 +0000 (09:55 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 18 Nov 2005 09:55:57 +0000 (09:55 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@10400 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/mdf.c

index 1e09d2d..278bef7 100644 (file)
@@ -325,9 +325,9 @@ void speex_echo_cancel(SpeexEchoState *st, short *ref, short *echo, short *out,
          st->adapted = 1;
 
       /* Temporary adaption rate if filter is not adapted correctly */
-      adapt_rate = .3f * Sxx / (1+See);
-      if (adapt_rate>.25)
-         adapt_rate = .25;
+      adapt_rate = .2f * Sxx / (1e4+See);
+      if (adapt_rate>.2)
+         adapt_rate = .2;
       adapt_rate /= M;
       
       /* How much have we adapted so far? */