0
0

It seems simple enough to use, but I’m getting all 0’s when I process the data.

FSOUND_DSP_SetActive(FSOUND_DSP_GetFFTUnit(), true);
float *spectrumData=FSOUND_DSP_GetSpectrum();

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.

  • You must to post comments
0
0

anyone?

  • You must to post comments
0
0

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 😳 )

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.