projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ca260
)
src/spectral/mfcc.c: move declaration up
author
Paul Brossier
<piem@piem.org>
Sat, 15 Sep 2018 16:01:51 +0000
(18:01 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 15 Sep 2018 16:01:51 +0000
(18:01 +0200)
src/spectral/mfcc.c
patch
|
blob
|
history
diff --git
a/src/spectral/mfcc.c
b/src/spectral/mfcc.c
index
0ef7407
..
83d1963
100644
(file)
--- 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);