From bb20f871a4692c8cbbdfdcbf637d1b83f234c6f2 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 12 Jul 2006 16:27:41 +0000 Subject: [PATCH] create filter deletion function create filter deletion function --- src/filter.c | 8 ++++++++ src/filter.h | 6 ++++++ 2 files changed, 14 insertions(+) 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 } -- 2.26.2