projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5644069
)
src/spectral/mfcc.c: improve build with -Wdeclaration-after-statement
author
Paul Brossier
<piem@piem.org>
Mon, 30 Dec 2013 23:25:04 +0000
(19:25 -0400)
committer
Paul Brossier
<piem@piem.org>
Mon, 30 Dec 2013 23:25:04 +0000
(19:25 -0400)
src/spectral/mfcc.c
patch
|
blob
|
history
diff --git
a/src/spectral/mfcc.c
b/src/spectral/mfcc.c
index
a71a6a5
..
a0e35be
100644
(file)
--- a/
src/spectral/mfcc.c
+++ b/
src/spectral/mfcc.c
@@
-51,6
+51,7
@@
new_aubio_mfcc (uint_t win_s, uint_t n_filters, uint_t n_coefs,
/* allocate space for mfcc object */
aubio_mfcc_t *mfcc = AUBIO_NEW (aubio_mfcc_t);
+ smpl_t scaling;
uint_t i, j;
@@
-70,7
+71,7
@@
new_aubio_mfcc (uint_t win_s, uint_t n_filters, uint_t n_coefs,
/* compute DCT transform dct_coeffs[i][j] as
cos ( j * (i+.5) * PI / n_filters ) */
- s
mpl_t s
caling = 1. / SQRT (n_filters / 2.);
+ scaling = 1. / SQRT (n_filters / 2.);
for (i = 0; i < n_filters; i++) {
for (j = 0; j < n_coefs; j++) {
mfcc->dct_coeffs->data[i][j] =