In order to test the function, I assigned a key (q on my keyboard) which call this function. But even if the music is playing, I still got this array full of those stupid zeros… Therefore I don’t think that the problem is because the music doesn’t play. But i may be wrong. Sorry if I didn’t get what you mean.
Ok i got it ! No more zero ! But no i have incredible huge numbers (like this one : 18730383245949875098769859401356820402843921296264573530200071497301346439423675784557603925206290482594135453810548559095756062870434891324118686624044041485775885929731896735271126585147654144.000000).
Here is my function :
its possible you’re passing garbage/the wrong pointer to your function. You didnt specify how you called that function.
Check the dominant frequency parameter first to make sure the fft is working on the signal properly. It should change over time.
After hours of pain, i think I got this ! My problem was that I didn’t used my FFT_Parameter proprely : I thought that fftparameter->spectrum was just a simple array. But it isn’t ! Thanks a lot !
Sincerly