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

jm at svn.xiph.org jm at svn.xiph.org
Mon Jan 15 13:46:32 PST 2007


Author: jm
Date: 2007-01-15 13:46:29 -0800 (Mon, 15 Jan 2007)
New Revision: 12327

Modified:
   trunk/speex/libspeex/resample.c
Log:
...


Modified: trunk/speex/libspeex/resample.c
===================================================================
--- trunk/speex/libspeex/resample.c	2007-01-15 12:42:15 UTC (rev 12326)
+++ trunk/speex/libspeex/resample.c	2007-01-15 21:46:29 UTC (rev 12327)
@@ -66,8 +66,14 @@
    st->mem = speex_alloc((st->filt_len-1) * sizeof(float));
    for (i=0;i<st->filt_len-1;i++)
       st->mem[i] = 0;
+   return st;
 }
 
+void speex_resampler_init(SpeexResamplerState *st)
+{
+   speex_free(st->mem);
+   speex_free(st);
+}
 
 int speex_resample_float(SpeexResamplerState *st, const float *in, int len, float *out)
 {



More information about the commits mailing list