From: Paul Brossier Date: Sat, 15 Sep 2018 16:01:51 +0000 (+0200) Subject: src/spectral/mfcc.c: move declaration up X-Git-Tag: 0.4.7~20^2 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=3aa60b218f34d609937738910ec3a08b8e1105de;p=aubio.git src/spectral/mfcc.c: move declaration up --- diff --git a/src/spectral/mfcc.c b/src/spectral/mfcc.c index 0ef7407f..83d1963c 100644 --- a/src/spectral/mfcc.c +++ b/src/spectral/mfcc.c @@ -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);