I am trying to play sound effects with playsound, but after a while none of them play anymore and eveything is silent. I attached a channel callback and found two things:
After a while as soon as I call play sound, callback gets triggered indcating that a real channel has been switched to virtual, which I guess is fine, but again the new sound does not play – which makes me wonder whether it is related to the next issue:
FMOD_CHANNEL_CALLBACKTYPE_END is not triggered automatically after my sound finishes playing, so if my sfx is only 0.5 seconds, I thought it ought to be triggered when the sound finishes playing, but that doesn’t appear to be the case. If I explicitly call stop on the channel of course that gets triggered…
It seems to me like FMOD is still thinking that my sfxs are still playing despite the fact that they are done, and thus anyone trying to play afterwards gets pushed off into being a virtual voice instead of real since they all have the same priority/volume?
Where could my code go wrong that causes this behavior? Setting incorrect file size in my custom file access methods? Thanks
- mac_bug asked 11 years ago
- You must login to post comments
Please login first to submit.