From: Paul Brossier Date: Fri, 25 Sep 2009 19:57:18 +0000 (+0200) Subject: src/spectral/phasevoc.c: window only once, remove unused variable X-Git-Tag: bzr2git~303 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bab0a127040ea23bd6d3948fe08aa365e8154fd1;p=aubio.git src/spectral/phasevoc.c: window only once, remove unused variable --- 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 */