create filter deletion function
authorPaul Brossier <piem@altern.org>
Wed, 12 Jul 2006 16:27:41 +0000 (16:27 +0000)
committerPaul Brossier <piem@altern.org>
Wed, 12 Jul 2006 16:27:41 +0000 (16:27 +0000)
create filter deletion function

src/filter.c
src/filter.h

index 3ff3cd00e3bb64ea95b66b85aa8665d96ddd4cf9..d734fddb25493f982be96336f517cb1d51bd8fe6 100644 (file)
@@ -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;
+}
index c6aaad0c745729b8d5f5433853710ca98fec951e..266befcd5bdac9dfac20bf28561814e137addf59 100644 (file)
@@ -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
 }