src/effects/timestretch_rubberband.c: remove unused variable, erase internal vector
authorPaul Brossier <piem@piem.org>
Thu, 29 Sep 2016 14:16:57 +0000 (16:16 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 29 Sep 2016 14:16:57 +0000 (16:16 +0200)
src/effects/timestretch_rubberband.c

index c2f383f..52c3699 100644 (file)
@@ -43,7 +43,6 @@ struct _aubio_timestretch_t
 
   aubio_source_t *source;
   fvec_t *in;
-  fvec_t *zeros;
   uint_t eof;
 
   RubberBandState rb;
@@ -67,7 +66,6 @@ new_aubio_timestretch (const char_t * uri, const char_t * mode,
   if (samplerate == 0 ) p->samplerate = aubio_source_get_samplerate(p->source);
 
   p->in = new_fvec(hopsize);
-  p->zeros = new_fvec(hopsize);
 
   if (stretchratio <= MAX_STRETCH_RATIO && stretchratio >= MIN_STRETCH_RATIO) {
     p->stretchratio = stretchratio;
@@ -111,6 +109,7 @@ beach:
 void
 del_aubio_timestretch (aubio_timestretch_t * p)
 {
+  if (p->in) del_fvec(p->in);
   if (p->source) del_aubio_source(p->source);
   if (p->rb) {
     rubberband_delete(p->rb);