Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes
I want to pause all sound with Unity scripts, what should I do?

I noticed that there is a global event named pauseall, but there isn't any version of PostEvent which doesn't require a gameobject parameter.

Thanx your advice.
in General Discussion by 吕无靥 (100 points)

2 Answers

+1 vote

This is an old question but I thought I could share my solution if anyone else is looking for it. I was able to do this by creating "PauseAll" and "ResumeAll" global events in the Wwise Events editor. The same way you'd create Play events. But you have to change from GameObject to Global under Scope on the right panel in the events editor (for ALL events).  And then Post those events in Unity with PostEvent mothod, the same way you'd post any other events. Hope this helps.

by Little Tim (160 points)
This was so helpful!
Thank you so much!
+1 vote
See AkSoundEngineController.cs (line 216)

-- AkSoundEngine.Suspend() -- pause all sounds

-- AkSoundEngine.WakeupFromSuspend() --- resume all sounds.
by Sally P. (360 points)
...