menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

0 votes
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.
fermée avec la mention: Solved the answer myself. Leaving for others to see.
dans General Discussion par Jeremy M. (170 points)
fermés par Jeremy M.

1 Réponse

0 votes
 
Meilleure réponse
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.
par Jeremy M. (170 points)
sélectionné par Noemie P. (Audiokinetic)
...