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 db40f7a167800c34bd58d458e45a249c45d5478d..b0f7a3bb8087ff945650acca3e2be30edf661218 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 c6bae9b92a286f16eba55b1c0f33843edc91ccf7..c604c6192cbc21bde089784f64d7bfe1dc894699 100644 (file)
@@ -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