projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9935735
)
create filter deletion function
author
Paul Brossier
<piem@altern.org>
Wed, 12 Jul 2006 16:27:41 +0000
(16:27 +0000)
committer
Paul Brossier
<piem@altern.org>
Wed, 12 Jul 2006 16:27:41 +0000
(16:27 +0000)
create filter deletion function
src/filter.c
patch
|
blob
|
history
src/filter.h
patch
|
blob
|
history
diff --git
a/src/filter.c
b/src/filter.c
index 3ff3cd00e3bb64ea95b66b85aa8665d96ddd4cf9..d734fddb25493f982be96336f517cb1d51bd8fe6 100644
(file)
--- 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 c6aaad0c745729b8d5f5433853710ca98fec951e..266befcd5bdac9dfac20bf28561814e137addf59 100644
(file)
--- 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
}