From 2a00568cda84b17dcfbc410d7fc45c890c16213a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 21 Nov 2007 11:26:57 +0100 Subject: [PATCH] aubio.i: add del_aubio_onsetdetection, aubioclass.py: replace _free with del_aubio_onsetdetection --- python/aubio/aubioclass.py | 2 +- swig/aubio.i | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/aubio/aubioclass.py b/python/aubio/aubioclass.py index b6e5be38..84ab9ae1 100644 --- a/python/aubio/aubioclass.py +++ b/python/aubio/aubioclass.py @@ -73,7 +73,7 @@ class onsetdetection: 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 """ diff --git a/swig/aubio.i b/swig/aubio.i index f9cca14a..8bc806f2 100644 --- a/swig/aubio.i +++ b/swig/aubio.i @@ -177,6 +177,7 @@ typedef enum { } 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); -- 2.26.2