It seems simple enough to use, but I’m getting all 0’s when I process the data.
I’m getting all 0s when I try to process spectrumData cells. I’m sure there’s something I’m missing either before or after this to initialize the DSP unit, but I thought the getfftunit wouldn’t require any further adjustment.
- Benjamin B asked 13 years ago
I hade problem too to use GetSpectrum in the past. 😉
How I do :
GetSpectrum return a pointer to a buffer wich containes 512 floats (a number coded on 4 byte), then you must transfer this buffer (wich size is 4 * 512 byte) into a pointer (yours), to write simplest :
GetSpectrumResult = _FSOUND_DSP_GetSpectrum@0
MyPointer = transfer the 4 * 512 byte from GetSpectrumResult
MyPointer is a pointer on an array defined like that : 512 floats coded on 4 bytes
(excuse my english 😳 )
Please login first to submit.