echo-cancel: Don't overpad variable

The padding was to be 16 bytes, not 16 elements.
This commit is contained in:
Arun Raghavan 2011-05-14 17:44:23 +05:30
parent 2bc2abc68a
commit 8305284cd2

View file

@ -306,7 +306,7 @@ struct AEC {
// NLMS-pw
REAL x[NLMS_LEN + NLMS_EXT]; // tap delayed loudspeaker signal
REAL xf[NLMS_LEN + NLMS_EXT]; // pre-whitening tap delayed signal
REAL w_arr[NLMS_LEN+16]; // tap weights
REAL w_arr[NLMS_LEN + (16 / sizeof(REAL))]; // tap weights
REAL *w; // this will be a 16-byte aligned pointer into w_arr
int j; // optimize: less memory copies
double dotp_xf_xf; // double to avoid loss of precision