I’m new on FMOD and it looks very cool to me.
I’m trying to get a frequency spectrum with the low-level-api but I can’t find any information how this will work.
First I try this:
The Problem is that “Channel::getSpectrum(…)” no longer exist, or?
So… can anyone telle me how is the right way to to this with the new version?
I hope my english is good enough…
Create a FFT DSP and add it to the channel. You can then query the frequency domain data using DSP::getParameterData(FMOD_DSP_FFT_SPECTRUMDATA, …)
I’ve got it. Thanks.
mFMODSystem->playSound(mSound, 0, false, &channel);
dsp->getParameterData(FMOD_DSP_FFT_SPECTRUMDATA, (void **)fft, 0, 0, 0);
for (int channel = 0; channel < 1; channel++)
for (int bin = 0; binlength; ++bin)
float freqVal = fft->spectrum[channel][bin];
hello,can you write code complete?I’ve had the sample problem as you.