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

jm at svn.xiph.org jm at svn.xiph.org
Mon Dec 19 04:05:39 PST 2005


Author: jm
Date: 2005-12-19 04:05:37 -0800 (Mon, 19 Dec 2005)
New Revision: 10655

Modified:
   trunk/speex/libspeex/nb_celp.c
Log:
save old curve


Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c	2005-12-19 11:59:41 UTC (rev 10654)
+++ trunk/speex/libspeex/nb_celp.c	2005-12-19 12:05:37 UTC (rev 10655)
@@ -439,6 +439,7 @@
 
 #ifdef VORBIS_PSYCHO
    compute_curve(st->psy, st->frame+52, st->curve);
+   print_vec(st->curve, 64, "curve");
    if (st->first)
       for (i=0;i<64;i++)
          st->old_curve[i] = st->curve[i];
@@ -967,6 +968,14 @@
          st->old_qlsp[i] = st->qlsp[i];
    }
 
+#ifdef VORBIS_PSYCHO
+   if (st->submodeID>=1)
+   {
+      for (i=0;i<64;i++)
+         st->old_curve[i] = st->curve[i];
+   }
+#endif
+
    if (st->submodeID==1)
    {
       if (st->dtx_count)



More information about the commits mailing list