menu
 

AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

0 支持
My game sound will play just fine when using the Unity Editor to "play" the game, but as soon as I build the game and try to play the sound mutes while in the background or minimized. I thought this was a Unity related issue, but it appears to have become more frequent recently among many developers. It's worth noting that my Run in Background settings are set in Unity and scripted to check for and update in the code every frame.
閉鎖(理由): Solved the answer myself. Leaving for others to see.
Jeremy M. (170 ポイント) General Discussion
Jeremy M. 閉鎖

回答 1

0 支持
 
ベストアンサー
Looking over the C++ documentation there are two functions that have managed to work well for this solution.

        AkSoundEngine.WakeupFromSuspend();
        AkSoundEngine.RenderAudio();

Both of these called at the start of the update function will allow the game to continue running in the background (in combination with Unity application background calls) and continue the sound playback.
Jeremy M. (170 ポイント)
Noemie P. (Audiokinetic) 選択
...