From: Paul Brossier Date: Wed, 12 Jul 2006 16:27:41 +0000 (+0000) Subject: create filter deletion function X-Git-Tag: bzr2git~628 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb20f871a4692c8cbbdfdcbf637d1b83f234c6f2;p=aubio.git create filter deletion function create filter deletion function --- diff --git a/src/filter.c b/src/filter.c index 3ff3cd00..d734fddb 100644 --- a/src/filter.c +++ b/src/filter.c @@ -215,3 +215,11 @@ aubio_filter_t * new_aubio_filter(uint_t samplerate, uint_t order) { return f; } +void del_aubio_filter(aubio_filter_t * f) { + AUBIO_FREE(f->a); + AUBIO_FREE(f->b); + AUBIO_FREE(f->x); + AUBIO_FREE(f->y); + AUBIO_FREE(f); + return; +} diff --git a/src/filter.h b/src/filter.h index c6aaad0c..266befcd 100644 --- a/src/filter.h +++ b/src/filter.h @@ -84,6 +84,12 @@ aubio_filter_t * new_aubio_adsgn_filter(uint_t samplerate); */ aubio_filter_t * new_aubio_cdsgn_filter(uint_t samplerate); +/** delete a filter object + + \param f filter object to delete + +*/ +void del_aubio_filter(aubio_filter_t * f); #ifdef __cplusplus }