shithub: aubio

Download patch

ref: e9d8cfe965929802aee0824ab4f466cad96c6808
parent: 637a3cedd17320292ed79e79636590c15ce72eb7
author: Paul Brossier <piem@altern.org>
date: Wed Jul 12 12:43:08 EDT 2006

add del_aubio_onsetdetection, aubio_onsetdetection_free is obsolete
add del_aubio_onsetdetection, aubio_onsetdetection_free is obsolete


--- a/src/onsetdetection.c
+++ b/src/onsetdetection.c
@@ -277,6 +277,10 @@
 }
 
 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 */
--- a/src/onsetdetection.h
+++ b/src/onsetdetection.h
@@ -162,7 +162,14 @@
   \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
 }