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.
General Discussion Jeremy M. (170 포인트) 로 부터
완료 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) 로 부터
...