ref: bab0a127040ea23bd6d3948fe08aa365e8154fd1
parent: ebbf5a0ba5310e82e6f8579c3f927f8f83d7debb
author: Paul Brossier <piem@piem.org>
date: Fri Sep 25 17:57:18 EDT 2009
src/spectral/phasevoc.c: window only once, remove unused variable
--- a/src/spectral/phasevoc.c
+++ b/src/spectral/phasevoc.c
@@ -47,14 +47,14 @@
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; i<pv->channels; 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 */