improved LPC analysis (mostly for very tonal signals)
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 1 Oct 2003 22:17:25 +0000 (22:17 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 1 Oct 2003 22:17:25 +0000 (22:17 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@5386 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/lpc.c

index 6f80d1e..1094291 100644 (file)
@@ -85,7 +85,7 @@ int          p
       r = -ac[i + 1];
       for (j = 0; j < i; j++) 
          r -= lpc[j] * ac[i - j];
-      r /= error;
+      r /= error+.004*ac[0];
 
       /*  Update LPC coefficients and total error */
       lpc[i] = r;