menu
 

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

0 投票
AkSoundEngine post event uses either string or uint. Is posting via uint faster? I would assume this is true and plan to structure the my interfacing with wwise this way.

Also, AkSoundEngine only has the function to convert a event string to an event id , but not vice versa. Is there a workaround for this?
分类:General Discussion | 用户: Victor C. (130 分)

1个回答

0 投票
For conversion from string to uint, Wwise is using a quick hash function (FNVhash: https://www.audiokinetic.com/library/2015.1.2_5457/?source=SDK&id=class_a_k_1_1_f_n_v_hash.html).  There is little overhead of using the string version instead of the uint version because the string version hashes the string, and call the uint version.  But the convenience of the string version is considerable.  The hash function is optimal.  There is no way to recover the string from the uint,
用户: Bernard R. (Audiokinetic) (35.8k 分)
...