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 can reset everything by restarting the sound engine, but would like to avoid reloading all the banks.

I can reset switches and RTPCs by unregistering and re-registering all GameObjects, but States are global and will be unaffected.
in General Discussion by Schmid (240 points)
... I guess it would be sufficient to reset all states, similar to the 'Reset All States' button in the Transport Control.

1 Answer

+1 vote

I thought I would answer my own question for future reference:

Resetting all state in Wwise can be useful to avoid subtle problems. The SoundCaster in the Authoring Tool has this functionality, but it is not present in the API as of v2013.

It requires:
  • unregistering all GameObjects,
  • resetting all state groups (state groups are global),
  • resetting all global RTPCs
The reset can be done in two ways:
  1. Shutdown and reinitialize, reload banks. Slow, but works.
  2. Manual reset:
    1. Unregister all GameObjects,
    2. load IDs of all state groups from Init.txt, set them to 0u ('None' state)
    3. load global RTPCs from SomeBank.txt, reset all using ResetRTPCValue()
I had an idea that reloading Init.bnk would work, but it doesn't.
 
by Schmid (240 points)
...