From 38837b14711df42329c1cad2a78ff51f8f4242da Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 8 Sep 2007 19:05:15 +0200 Subject: [PATCH] aubiomfcc.c: get hi/lowfreq after common_init, delete mfcc object before common_del --- examples/aubiomfcc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/aubiomfcc.c b/examples/aubiomfcc.c index fbeb0f27..9df59e34 100644 --- a/examples/aubiomfcc.c +++ b/examples/aubiomfcc.c @@ -82,9 +82,9 @@ void process_print (void) { int main(int argc, char **argv) { // params uint_t n_filters = 11; - smpl_t lowfreq = 500.; - smpl_t highfreq = 2000.; examples_common_init(argc,argv); + smpl_t lowfreq = 0.; + smpl_t highfreq = samplerate; mfcc_out = new_fvec(n_filters,channels); //populating the filter @@ -93,13 +93,14 @@ int main(int argc, char **argv) { //process examples_common_process(aubio_process,process_print); - examples_common_del(); - debug("End of program.\n"); - fflush(stderr); //destroying mfcc del_aubio_mfcc(mfcc); del_fvec(mfcc_out); + + examples_common_del(); + debug("End of program.\n"); + fflush(stderr); return 0; } -- 2.26.2