Hi, we just began to include Wwise in our Unity project and noticed a bug.
Here's how to reproduce it (Unity 2017.1 and Unity 2017.3 do the same thing):
- Create an empty Unity project and an empty Wwise project.
- Follow the beginner's tutorial with a single sound: https://www.audiokinetic.com/library/edge/?source=Unity&id=pg__installation.html
- Open Unity
- Press Pause
- Press Play to enter the Play mode. This starts a PAUSED game
- Press Play again to stop Play mode. Unity now freezes.
The problem is that when pressing Pause, the audio thread is suspended (Unity log says: Wwise: Audio thread suspended. Audio output will be silent.), but the game cannot initialize properly when pressing Play with a suspended audio thread.
We narrowed it down to AkSoundEngineController.OnEditorPlaymodeStateChanged() for Unity 2017.1 and AkSoundEngineController.OnPauseStateChanged() for Unity 2017.3.
We're using Wwise 2017.2.0.6500 and Wwise Integration 2017.2.0.6500.947
Please fix this, since it's making project debugging a headache.