shithub: aubio

Download patch

ref: 3aa60b218f34d609937738910ec3a08b8e1105de
parent: c9ca26089538e7f8f94b2112b41bc51d4698da98
author: Paul Brossier <piem@piem.org>
date: Sat Sep 15 14:01:51 EDT 2018

src/spectral/mfcc.c: move declaration up

--- a/src/spectral/mfcc.c
+++ b/src/spectral/mfcc.c
@@ -122,6 +122,9 @@
 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_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);