Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

How do I reset all state (Switches, States, RTPCs) from the Wwise API?

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.
asked Oct 29, 2014 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.
answered Nov 20, 2014 by Schmid (240 points)