menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票
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.
分类:General Discussion | 用户: Schmid (240 分)
... I guess it would be sufficient to reset all states, similar to the 'Reset All States' button in the Transport Control.

1个回答

+1 投票

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.
 
用户: Schmid (240 分)
...