[Speex-dev] Missing line in preprocess_analysis
QianBin
cola_tin at 163.com
Wed Mar 3 23:03:27 PST 2010
Hi,
In function preprocess_analysis to calculate power spectrum, the last element of ps is missing.
/* Power spectrum */
ps[0]=MULT16_16(st->ft[0],st->ft[0]);
for (i=1;i<N;i++)
ps[i]=MULT16_16(st->ft[2*i-1],st->ft[2*i-1]) + MULT16_16(st->ft[2*i],st->ft[2*i]);
/*MISSING*/
ps[N-1] = MULT16_16(st->ft[2*N-1],st->ft[2*N-1]);
Should it be a bug?
QianBin
cola_tin at 163.com
2010-03-04
More information about the Speex-dev
mailing list