Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Unity Callbacks unreliable in Unity 2020.2.1f1 and Wise 2019.2.8

+2 votes
Previously, our project was using Unity 2019.3.0f5 and Wise 2019.2.57349. With these two versions we had no problems getting AK_EndOfEvent callbacks reliably. We have recently upgraded to Unity 2020.2.1f1 and Wise 2019.2.8.7432 and now suddenly we are noticing that the callbacks intermittently are no longer called. Aside from the automatic code modifications that Wise did as a part of the upgrade we haven't modified any of our audio code. Digging into the Wise Unity integration as far as we can we can see where the event gets added successfully into the m_mapEventCallbacks. When the callback is successfully called we can see that it comes through AkCallbackmanager.PostCallbacks as you'd expect and when the event isn't triggered the PostCallbacks never gets triggered, so it appears as though the issue lies between the Unity the Unity Wise Plugin and Wise library itself.

From what we can tell there seems to be no rhyme or reason as to when the callback gets called or not. The issue can be reproduced by simply starting up the game and immediately performing an action that triggers the sound effect we are looking for. Sometimes the callback gets called sometimes it doesn't. The sound effect itself plays consistently, the event is tied to a random pick list of sounds in Wise but even when the exact same audio file ends up playing the callback sometimes can be called and sometimes not be called. As a test we also added the AK_Duration flag for the callback and sometimes that one will be called sometimes it won't seemingly independent of whether the EndOfEvent callback gets called, aka sometimes the end event gets called sometimes duration gets called sometimes both, sometimes neither. The effected sound is played with AkSoundEngine.PostEvent.

We've also tested with Wise 2019.2.9.7459 which appears to have the same problem.

Neither of the above versions of Wise yet formally say that they are compatible with Unity 2020.2 though they are with Unity 2020.1.

What we are wondering is if anyone has experienced similar issues when upgrading either the Wise version or Unity version with event callbacks? If so do you have any insights as to what we can do to resolve this?

As well if this simply is an incompatibility between Wise and Unity 2020.2 does anyone know when we can expect Wise to fully support Unity 2020.2?

Thanks!
asked Feb 8, 2021 in General Discussion by David R. (120 points)
edited Feb 22, 2021 by David R.

Please sign-in or register to answer this question.

...