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.

AkSoundEngine.GetIDFromString in editor build

+1 vote
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
asked May 31, 2022 in General Discussion by Sam c. (140 points)

Please sign-in or register to answer this question.

...