From: Paul Brossier Date: Sat, 8 Sep 2007 12:12:36 +0000 (+0200) Subject: filterbank.c: update header, fix fvec_t typo, allocate aubio_filterbank_t in the... X-Git-Tag: bzr2git~442^2~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f918cb90969c0b4ba8d153f48e4b316f8585bc80;p=aubio.git filterbank.c: update header, fix fvec_t typo, allocate aubio_filterbank_t in the first place --- 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