src/spectral/mfcc.c: move declaration up
authorPaul Brossier <piem@piem.org>
Sat, 15 Sep 2018 16:01:51 +0000 (18:01 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 15 Sep 2018 16:01:51 +0000 (18:01 +0200)
src/spectral/mfcc.c

index 0ef7407..83d1963 100644 (file)
@@ -122,6 +122,9 @@ del_aubio_mfcc (aubio_mfcc_t * mf)
 void
 aubio_mfcc_do (aubio_mfcc_t * mf, const cvec_t * in, fvec_t * out)
 {
+#ifndef HAVE_SLOW_DCT
+  fvec_t tmp;
+#endif
   /* compute filterbank */
   aubio_filterbank_do (mf->fb, in, mf->in_dct);
 
@@ -138,7 +141,6 @@ aubio_mfcc_do (aubio_mfcc_t * mf, const cvec_t * in, fvec_t * out)
   aubio_dct_do(mf->dct, mf->in_dct, mf->output);
   // copy only first n_coeffs elements
   // TODO assert mf->output->length == n_coeffs
-  fvec_t tmp;
   tmp.data = mf->output->data;
   tmp.length = out->length;
   fvec_copy(&tmp, out);