I have a problem with FMOD ambient sounds after updating to the latest version. I have several FMOD ambient sounds in the level marked as “auto activate”. When I load the level they start playing but when I hide the same level all FMOD ambient sounds keep playing even if the level is not enabled anymore.
Is this a known issue? Is there any workaround to fix the issue temporary?
No, i’m not sending a stop command to the FMOD events. But in previous versions this worked fine without sending a stop command.
In my case i have 2 levels, I show the first of them and ambience sounds start playing then I hide the first level and show the second, in this case ambien sounds of the first level should stop play but they still sound.
Before updating to the latest version this works fine.
I have the same issue. The problem is that UFMODAudioComponent::ReleaseEventInstance is getting called before UFMODAudioComponent::EndPlay, so that when Stop is called from EndPlay, StudioInstance is null, and the sound doesn’t get stopped. ReleaseEventInstance is getting called from UFMODAudioComponent::OnUnregister. I’ve fixed it for now by calling Stop from ReleaseEventInstance.