From: Paul Brossier Date: Wed, 11 Jul 2012 20:44:27 +0000 (-0600) Subject: src/spectral/specdesc.c: remove old comments X-Git-Tag: 0.4.0-beta1~403 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=83b385ffe982db15d8d9f7224e8993a709bc8910;p=aubio.git src/spectral/specdesc.c: remove old comments --- diff --git a/src/spectral/specdesc.c b/src/spectral/specdesc.c index fa86339f..38b471b2 100644 --- a/src/spectral/specdesc.c +++ b/src/spectral/specdesc.c @@ -311,10 +311,6 @@ new_aubio_specdesc (char_t * onset_mode, uint_t size){ break; } - /* this switch could be in its own function to change between - * detections on the fly. this would need getting rid of the switch - * above and always allocate all the structure */ - switch(onset_type) { case aubio_onset_energy: o->funcpointer = aubio_specdesc_energy; @@ -340,7 +336,6 @@ new_aubio_specdesc (char_t * onset_mode, uint_t size){ case aubio_onset_specflux: o->funcpointer = aubio_specdesc_specflux; break; - // for for the additional descriptors. these don't need additional memory case aubio_specmethod_centroid: o->funcpointer = aubio_specdesc_centroid; break; @@ -371,12 +366,10 @@ new_aubio_specdesc (char_t * onset_mode, uint_t size){ void del_aubio_specdesc (aubio_specdesc_t *o){ switch(o->onset_type) { - /* for both energy and hfc, only fftgrain->norm is required */ case aubio_onset_energy: break; case aubio_onset_hfc: break; - /* the other approaches will need some more memory spaces */ case aubio_onset_complex: del_fvec(o->oldmag); del_fvec(o->dev1);