Hello, I have a problem with my project, after update to the latest version of fmod have silent crash on stop from playmode. No logs, no crash, just editor closed.
I know which sound doing this but It worked before good. I tried downgrade, change versions but no result.
The same with changing emitter to event instance.
Problem is when sound is playing, when I stop it manually is OK. I can stop playmode and again turn on.
this method OnEngineState(0) is in OnDestroy too, to stop sound
public void OnEngineState(int state)
{
Debug.Log($"{name} state: {state}");
if (state > 0)
{
simuEngine.IsRunning = true;
soundEventInstance = FMODUnity.RuntimeManager.CreateInstance(soundEventReference);
soundEventInstance.start();
}
else
{
simuEngine.IsRunning = false;
soundEventInstance.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
soundEventInstance.release();
}
}