ref: 32669d979d3b61b852591e63f7ea818e6a7e286b
parent: b4b03247aca9aba8aa82d0ac95a60a77a2c7c838
author: Paul Brossier <piem@altern.org>
date: Tue Aug 9 05:09:43 EDT 2005
removed obsoleted pickparams_t
--- a/src/peakpick.c
+++ b/src/peakpick.c
@@ -113,7 +113,7 @@
}
/** function added by Miguel Ramirez to return the onset detection amplitude in peakval */
-uint_t aubio_peakpick_pimrt_wt(fvec_t * onset, pickparams_t * p, smpl_t* peakval)
+uint_t aubio_peakpick_pimrt_wt(fvec_t * onset, aubio_pickpeak_t * p, smpl_t* peakval)
{
fvec_t * onset_keep = (fvec_t *)p->onset_keep;
fvec_t * onset_proc = (fvec_t *)p->onset_proc;
--- a/src/peakpick.h
+++ b/src/peakpick.h
@@ -33,14 +33,11 @@
typedef smpl_t (*aubio_thresholdfn_t)(fvec_t *input);
typedef uint_t (*aubio_pickerfn_t)(fvec_t *input, uint_t pos);
typedef struct _aubio_pickpeak_t aubio_pickpeak_t;
-/* alias for backward compatibility */
-typedef aubio_pickpeak_t pickparams_t;
aubio_pickpeak_t * new_aubio_peakpicker(smpl_t threshold);
uint_t aubio_peakpick_pimrt(fvec_t * DF, aubio_pickpeak_t * p);
/** function added by Miguel Ramirez to return the onset detection amplitude in peakval */
-uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, pickparams_t* p, smpl_t* peakval );
-//smpl_t aubio_peakpick_samerpp(fvec_t * DF, aubio_pickpeak_t * p);
+uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, aubio_pickpeak_t* p, smpl_t* peakval );
void del_aubio_peakpicker(aubio_pickpeak_t * p);
#ifdef __cplusplus