add del_aubio_onsetdetection, aubio_onsetdetection_free is obsolete
authorPaul Brossier <piem@altern.org>
Wed, 12 Jul 2006 16:43:08 +0000 (16:43 +0000)
committerPaul Brossier <piem@altern.org>
Wed, 12 Jul 2006 16:43:08 +0000 (16:43 +0000)
add del_aubio_onsetdetection, aubio_onsetdetection_free is obsolete

src/onsetdetection.c
src/onsetdetection.h

index db40f7a..b0f7a3b 100644 (file)
@@ -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 */
index c6bae9b..c604c61 100644 (file)
@@ -162,8 +162,15 @@ 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