From e2645cbf6f431a0a1d3518738d438827a32784c5 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 21 Sep 2016 15:54:22 +0200 Subject: [PATCH] src/effects/pitchshift.c: remove unused timeratio --- src/effects/pitchshift.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/effects/pitchshift.c b/src/effects/pitchshift.c index 21835696..f5b6acfb 100644 --- a/src/effects/pitchshift.c +++ b/src/effects/pitchshift.c @@ -40,7 +40,6 @@ struct _aubio_pitchshift_t { uint_t samplerate; /**< samplerate */ uint_t hopsize; /**< hop size */ - smpl_t timeratio; /**< time ratio */ smpl_t pitchscale; /**< pitch scale */ RubberBandState rb; @@ -94,7 +93,7 @@ new_aubio_pitchshift (const char_t * mode, //p->rboptions |= RubberBandOptionSmoothingOff; //p->rboptions |= RubberBandOptionFormantShifted; //p->rboptions |= RubberBandOptionPitchHighConsistency; - p->rb = rubberband_new(samplerate, 1, p->rboptions, p->timeratio, p->pitchscale); + p->rb = rubberband_new(samplerate, 1, p->rboptions, 1., p->pitchscale); rubberband_set_max_process_size(p->rb, p->hopsize); //rubberband_set_debug_level(p->rb, 10); -- 2.11.0