jamiebullock / LibXtract

LibXtract is a simple, portable, lightweight library of audio feature extraction functions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac, malloc scribble and FFT

Jaydee2190 opened this issue · comments

Hello Jamie. When using the built in Accelerate framework and malloc_scribble is enabled, the last elements of the fft structure are non-zero. (Throwing off pretty much scalar functions!)

fix...(clear the structure instead of just malloc).

xtract_init_vdsp_data.c
vdsp_data->fft.realp = (double *) calloc((N >> 1) + 1,sizeof(double));
vdsp_data->fft.imagp = (double *) calloc((N >> 1) + 1,sizeof(double));

Hi,

Thanks for reporting the bug. Would you mind submitting a pull request with the fix?

Thanks,

Jamie