From e9d8cfe965929802aee0824ab4f466cad96c6808 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 12 Jul 2006 16:43:08 +0000 Subject: [PATCH] add del_aubio_onsetdetection, aubio_onsetdetection_free is obsolete add del_aubio_onsetdetection, aubio_onsetdetection_free is obsolete --- src/onsetdetection.c | 4 ++++ src/onsetdetection.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/onsetdetection.c b/src/onsetdetection.c index db40f7a1..b0f7a3bb 100644 --- a/src/onsetdetection.c +++ b/src/onsetdetection.c @@ -277,6 +277,10 @@ aubio_onsetdetection_alloc (aubio_onsetdetection_type type, } void aubio_onsetdetection_free (aubio_onsetdetection_t *o){ + del_aubio_onsetdetection(o); +} + +void del_aubio_onsetdetection (aubio_onsetdetection_t *o){ switch(o->type) { /* for both energy and hfc, only fftgrain->norm is required */ diff --git a/src/onsetdetection.h b/src/onsetdetection.h index c6bae9b9..c604c619 100644 --- a/src/onsetdetection.h +++ b/src/onsetdetection.h @@ -161,9 +161,16 @@ aubio_onsetdetection_t * new_aubio_onsetdetection(aubio_onsetdetection_type type \param o onset detection object as returned by new_aubio_pitchfcomb +*/ +void del_aubio_onsetdetection(aubio_onsetdetection_t *o); +/** deletion of an onset detection object (obsolete) + + \param o onset detection object as returned by new_aubio_pitchfcomb + */ void aubio_onsetdetection_free(aubio_onsetdetection_t *o); + #ifdef __cplusplus } #endif -- 2.26.2