shithub: aubio

Download patch

ref: 2a00568cda84b17dcfbc410d7fc45c890c16213a
parent: 15b97d9f4f9078c1d82faa8ac8b71bc2334ce5ec
author: Paul Brossier <piem@piem.org>
date: Wed Nov 21 06:26:57 EST 2007

aubio.i: add del_aubio_onsetdetection, aubioclass.py: replace _free with del_aubio_onsetdetection

--- a/python/aubio/aubioclass.py
+++ b/python/aubio/aubioclass.py
@@ -73,7 +73,7 @@
     def do(self,tc,tf):
         aubio_onsetdetection(self.od,tc(),tf())
     def __del__(self):
-        aubio_onsetdetection_free(self.od)
+        del_aubio_onsetdetection(self.od)
 
 class peakpick:
     """ class for aubio_peakpicker """
--- a/swig/aubio.i
+++ b/swig/aubio.i
@@ -177,6 +177,7 @@
 } aubio_onsetdetection_type;
 aubio_onsetdetection_t * new_aubio_onsetdetection(aubio_onsetdetection_type type, uint_t size, uint_t channels);
 void aubio_onsetdetection(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);
+void del_aubio_onsetdetection(aubio_onsetdetection_t *o);
 
 /* should these still be exposed ? */
 void aubio_onsetdetection_energy  (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);