menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

+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
dans General Discussion par Sam c. (160 points)

Please sign-in or register to answer this question.

...