From dcc649ca5af3d0754150cc1f656db11b4636f60c Mon Sep 17 00:00:00 2001 From: Amaury Hazan Date: Thu, 6 Sep 2007 15:49:29 +0200 Subject: [PATCH] minor changes --- examples/aubiomfcc.c | 5 +++++ src/mfcc.h | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/aubiomfcc.c b/examples/aubiomfcc.c index cca66054..1f16ca7d 100644 --- a/examples/aubiomfcc.c +++ b/examples/aubiomfcc.c @@ -25,6 +25,11 @@ int aubio_process(float **input, float **output, int nframes); int aubio_process(float **input, float **output, int nframes) { unsigned int i; /*channels*/ unsigned int j; /*frames*/ + + // declare the mel filter bank + // TODO: should be done only once + aubio_mfcc_init(int N, NYQUIST, int style, float freq_min, float freq_max, int freq_bands, float **fft_tables); + for (j=0;j<(unsigned)nframes;j++) { if(usejack) { for (i=0;i