jamiebullock / LibXtract

LibXtract is a simple, portable, lightweight library of audio feature extraction functions.
MIT License
227 stars 46 forks source link

autocorrelation_fft crash and other issues #32

Open q-depot opened 11 years ago

q-depot commented 11 years ago

Hi,

there is a consistent issue with my app, after a while it usually crash, I didn't spend time digging the problem yet, but it seems to be related to the auto correlation fft. Generally this function seems causing quite a few problems, sometimes it doesn't work, sometimes it stop all the other features to work properly like all the function results are 0.

did anybody notice these issues before?

autocorr

q-depot commented 10 years ago

Hi, this is quite an old issue, but I noticed some problems persist. I think I'm initialising the autocorrelation fft correctly using xtract_init_fft, however this seems totally random, occasionally it works, but most of the time it doesn't.

xtract_init_fft( PCM_SIZE, XTRACT_AUTOCORRELATION_FFT ) .. xtract[XTRACT_AUTOCORRELATION](pcmData, PCM_SIZE, mArgd, results);

I also find xtract_init_fft very confusing as I was expecting to use it only to initialised the XTRACT_SPECTRUM, the documentation for the autocorrelation_fft also doesn't mention the initialisation.