Are you sure you’re not just ignoring the return values from getSpectrum and getting uninitialized stack data plotted to your screen? (which just happens to be what was processed before the sound ended).
If a sound is stopped, getSpectrum would return FMOD_ERR_INVALID_HANDLE
Seems it’s some DSP problem…:
I have another project, which uses 2 sound systems, one with a DSP added and one without.
I set the volume to 0 then pause immediatelly. While the system without the DSP attached works fine, the DSP one still plays bits of the sound.
(a sleep(50) or so between setvolume and setpause seem to help)
Similar problem accurs when seeking, but as the sound still plays its a very short time only, almost a funny effect.
When disabling the DSP, both systems pause correct.
Can’t say for sure this problem is related with the spectrum, the DSP project has not spectrum displayed (yet), but it seems to be the same new fmodex versions affected (didn’t test much so)
BTW, it’s a winamp dsp plugin, and this time even a Windows XP machine (not tested on 98 yet
(still have this problem with 4.29.08)
- PS3 – Fixed getWaveData/getSpectrum returning values for empty channelgroups
in some cases.
is documented in the 4.29.08, but not in 4.28.08… sounds pretty related…if that is sort of related to System::getSpectrum
Please login first to submit.