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

jm at svn.xiph.org jm at svn.xiph.org
Fri Feb 2 06:05:12 PST 2007


Author: jm
Date: 2007-02-02 06:05:06 -0800 (Fri, 02 Feb 2007)
New Revision: 12416

Modified:
   trunk/speex/libspeex/resample.c
   trunk/speex/libspeex/testresample.c
Log:
oops, removed debug code


Modified: trunk/speex/libspeex/resample.c
===================================================================
--- trunk/speex/libspeex/resample.c	2007-02-02 14:03:39 UTC (rev 12415)
+++ trunk/speex/libspeex/resample.c	2007-02-02 14:05:06 UTC (rev 12416)
@@ -222,17 +222,17 @@
       st->mem = (spx_word16_t*)speex_alloc(st->nb_channels*(st->filt_len-1) * sizeof(spx_word16_t));
       for (i=0;i<st->nb_channels*(st->filt_len-1);i++)
          st->mem[i] = 0;
-      speex_warning("init filter");
+      /*speex_warning("init filter");*/
    } else if (!st->started)
    {
       st->mem = (spx_word16_t*)speex_realloc(st->mem, st->nb_channels*(st->filt_len-1) * sizeof(spx_word16_t));
       for (i=0;i<st->nb_channels*(st->filt_len-1);i++)
          st->mem[i] = 0;
-      speex_warning("reinit filter");
+      /*speex_warning("reinit filter");*/
    } else if (st->filt_len > old_length)
    {
       /* Increase the filter length */
-      speex_warning("increase filter size");
+      /*speex_warning("increase filter size");*/
       st->mem = (spx_word16_t*)speex_realloc(st->mem, st->nb_channels*(st->filt_len-1) * sizeof(spx_word16_t));
       for (i=0;i<st->nb_channels;i++)
       {
@@ -249,7 +249,7 @@
    } else if (st->filt_len < old_length)
    {
       /* Reduce filter length */
-      speex_warning("decrease filter size (unimplemented)");
+      /*speex_warning("decrease filter size (unimplemented)");*/
    }
 
 }

Modified: trunk/speex/libspeex/testresample.c
===================================================================
--- trunk/speex/libspeex/testresample.c	2007-02-02 14:03:39 UTC (rev 12415)
+++ trunk/speex/libspeex/testresample.c	2007-02-02 14:05:06 UTC (rev 12416)
@@ -64,11 +64,9 @@
       if (feof(stdin))
          break;
       for (i=0;i<NN;i++)
-         fin[i]=3.f*in[i];
+         fin[i]=in[i];
       in_len = NN;
       out_len = 2*NN;
-      if (count==2)
-         speex_resampler_set_quality(st, 10);
       speex_resampler_process_float(st, 0, fin, &in_len, fout, &out_len);
       for (i=0;i<out_len;i++)
          out[i]=floor(.5+fout[i]);



More information about the commits mailing list