From bab0a127040ea23bd6d3948fe08aa365e8154fd1 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 25 Sep 2009 21:57:18 +0200 Subject: [PATCH] src/spectral/phasevoc.c: window only once, remove unused variable --- src/spectral/phasevoc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spectral/phasevoc.c b/src/spectral/phasevoc.c index 486ad679..f5022548 100644 --- a/src/spectral/phasevoc.c +++ b/src/spectral/phasevoc.c @@ -47,14 +47,14 @@ static void aubio_pvoc_addsynth(const smpl_t * synth, smpl_t * synthold, smpl_t * synthnew, uint_t win_s, uint_t hop_s); void aubio_pvoc_do(aubio_pvoc_t *pv, fvec_t * datanew, cvec_t *fftgrain) { - uint_t i,j; + uint_t i; for (i=0; ichannels; i++) { /* slide */ aubio_pvoc_swapbuffers(pv->data->data[i],pv->dataold->data[i], datanew->data[i],pv->win_s,pv->hop_s); - /* windowing */ - fvec_weight(pv->data, pv->w); } + /* windowing */ + fvec_weight(pv->data, pv->w); /* shift */ vec_shift(pv->data); /* calculate fft */ -- 2.26.2