shithub: aubio

Download patch

ref: 456a784c9332c040a4374456357cd71143b039d1
parent: 85755eb4cd902f386421db340d8be2d2b449469f
author: Paul Brossier <piem@piem.org>
date: Thu Sep 29 12:16:57 EDT 2016

src/effects/timestretch_rubberband.c: remove unused variable, erase internal vector

--- a/src/effects/timestretch_rubberband.c
+++ b/src/effects/timestretch_rubberband.c
@@ -43,7 +43,6 @@
 
   aubio_source_t *source;
   fvec_t *in;
-  fvec_t *zeros;
   uint_t eof;
 
   RubberBandState rb;
@@ -67,7 +66,6 @@
   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 @@
 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);