From: Paul Brossier Date: Sat, 8 Sep 2007 17:05:15 +0000 (+0200) Subject: aubiomfcc.c: get hi/lowfreq after common_init, delete mfcc object before common_del X-Git-Tag: 0.4.0-beta1~969^2~16 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=38837b14711df42329c1cad2a78ff51f8f4242da;p=aubio.git aubiomfcc.c: get hi/lowfreq after common_init, delete mfcc object before common_del --- 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; }