[xiph-commits] r8893 - trunk/speex/libspeex

jm at motherfish-iii.xiph.org jm at motherfish-iii.xiph.org
Wed Feb 9 01:13:09 PST 2005


Author: jm
Date: 2005-02-09 01:13:08 -0800 (Wed, 09 Feb 2005)
New Revision: 8893

Modified:
   trunk/speex/libspeex/nb_celp.c
Log:
Added a shortcut for ringing computation


Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c	2005-02-09 08:32:04 UTC (rev 8892)
+++ trunk/speex/libspeex/nb_celp.c	2005-02-09 09:13:08 UTC (rev 8893)
@@ -719,10 +719,19 @@
       /* Compute zero response of A(z/g1) / ( A(z/g2) * A(z) ) */
       for (i=0;i<st->lpcSize;i++)
          mem[i]=st->mem_sp[i];
+#ifdef SHORTCUTS2
+      iir_mem2(exc, st->interp_qlpc, exc, response_bound, st->lpcSize, mem);
+      for (i=0;i<st->lpcSize;i++)
+         mem[i]=st->mem_sw[i];
+      filter_mem2(exc, st->bw_lpc1, st->bw_lpc2, res, response_bound, st->lpcSize, mem);
+      for (i=response_bound;i<st->subframeSize;i++)
+         res[i]=0;
+#else
       iir_mem2(exc, st->interp_qlpc, exc, st->subframeSize, st->lpcSize, mem);
       for (i=0;i<st->lpcSize;i++)
          mem[i]=st->mem_sw[i];
       filter_mem2(exc, st->bw_lpc1, st->bw_lpc2, res, st->subframeSize, st->lpcSize, mem);
+#endif
       
       /* Compute weighted signal */
       for (i=0;i<st->lpcSize;i++)



More information about the commits mailing list