From f918cb90969c0b4ba8d153f48e4b316f8585bc80 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 8 Sep 2007 14:12:36 +0200 Subject: [PATCH] filterbank.c: update header, fix fvec_t typo, allocate aubio_filterbank_t in the first place --- src/filterbank.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/filterbank.c b/src/filterbank.c index 4aeecfb4..434297cc 100644 --- a/src/filterbank.c +++ b/src/filterbank.c @@ -1,8 +1,6 @@ /* - Copyright (C) 2007 Amaury Hazan - Ported to aubio from LibXtract - http://libxtract.sourceforge.net/ - + Copyright (C) 2007 Amaury Hazan + and Paul Brossier This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,12 +18,13 @@ */ +/* part of this mfcc implementation were inspired from LibXtract + http://libxtract.sourceforge.net/ +*/ + #include "aubio_priv.h" #include "filterbank.h" - -// Struct Declaration - /** \brief A structure to store a set of n_filters filters of lenghts win_s */ struct aubio_filterbank_t_ { uint_t win_s; @@ -34,15 +33,14 @@ struct aubio_filterbank_t_ { }; aubio_filterbank_t * new_aubio_filterbank(uint_t n_filters, uint_t win_s){ - - int filter_cnt; /** allocating space for filterbank object */ aubio_filterbank_t * fb = AUBIO_NEW(aubio_filterbank_t); + uint_t filter_cnt; fb->win_s=win_s; fb->n_filters=n_filters; /** allocating filter tables */ - fb->filters=AUBIO_ARRAY(n_filters,f_vec_t); + fb->filters=AUBIO_ARRAY(n_filters,fvec_t); for (filter_cnt=0; filter_cnt