0
0

Hello

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:

  1. 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:

  2. 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

  • You must to post comments
0
0

nevermind, I’m fracking stupid and didn’t call system::update, the repeated triggering of virtual->real callback and trigger of the callback when I call stop on the channel mislead me into thinking I am calling it -_-

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.