shithub: aubio

Download patch

ref: bb20f871a4692c8cbbdfdcbf637d1b83f234c6f2
parent: 9935735b71a91afdace42a49c03a844d21a551ab
author: Paul Brossier <piem@altern.org>
date: Wed Jul 12 12:27:41 EDT 2006

create filter deletion function
create filter deletion function


--- a/src/filter.c
+++ b/src/filter.c
@@ -215,3 +215,11 @@
   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;
+}
--- a/src/filter.h
+++ b/src/filter.h
@@ -84,6 +84,12 @@
 
 */
 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
 }