0
0

Hello,

I’m having a problem with GetSpectrum.
No matter what parameters I pass in, I always get the error "An invalid parameter was passed to this function".

The sound is playing fine.
I get the same error with 2D and 3D sounds, mp3 or WAV, streaming or non-streaming.
No matter the number of values, or FFT method – same error.
I’m using only mono sounds.
I get the same error with both System::getSpectrum and Channel::getSpectrum.

I’m using an older version of FMOD Ex: Version 00040623

Speaker mode:   Stereo
# Speakers: 2
Output mode:    DirectSound
Hardware Support:   no
# Hardware channels:    0 (2d) 0 (3d) 0 (all)
# Software channels:    64

Any suggestions how to fix this?

Interestingly, it does seem to be doing some calculation: If I put numvalues = 20000, my frame rate is much lower than numvalues = 10.
EDIT: Also getWaveData works fine.

Matt

  • You must to post comments
0
0

Hi matt, can you post a snippet of code where you call getSpectrum?

  • You must to post comments
0
0

Hi Peter,

Well. Now it’s working. Ha. I swear I didn’t change a thing, but I guess I’ll never know.
shit, I spent all day working on an alternative solution too.

Matt

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.