Using Unity with Wwise 2021.1.1. Question about AkSoundEngine.GetIDFromString() - it appears to return '0' if the sound engine isn't initialized. This is causing problems for us in a few cases:
- we are in the editor, the sound engine isn't initialized, we are building a player, and want to bake strings down to IDs -- but the API returns 0
- the player is initializing, and we'd like to cache some IDs on startup, but the sound engine isn't initialized.
According to the docs, it looks like this is just running a FNV1 hash. Does the sound engine really need to be initialized to compute the hash? The docs direct to this web page:
https://github.com/ryankearney/libraries/blob/master/Wwise/Include/AK/Tools/Common/AkFNVHash.h
which doesn't seem to completely answer this.. Would really like to be able to call this function outside of the sound engine being initialized (which I dont' think happens when we are just building a player on our build farm, for example).
thanks,
sam