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

Documentation: Valid AkGameObjectID range

0 投票
What is the valid range of values that an AkGameObjectID can have in Wwise SDK 2017.X.X?

In the Migration Notes it mentions that AkGameObjectID is now a 64-bit unsigned on all platforms, and that it can range from 0 to 0x‭FFFFFFFFFFFFFFDF‬ (-33).  See here ("The valid game object ID range has changed"):

https://www.audiokinetic.com/library/edge/?source=SDK&id=whatsnew__2017__1__migration.html

In the Integration Details for Game Objects, however, it seems to tell a different story.  It says AkGameObjectID is an unsigned 32-bit integer and that you can use any ID that is not 0x00000000, 0x00000001 or 0xFFFFFFFF (-1).  See here:

https://www.audiokinetic.com/library/edge/?source=SDK&id=soundengine__gameobj.html

This is probably just a case of documentation that wasn't updated.  I assume that the Migration Notes for 2017 takes precedent since AkGameObjectID is an AkUInt64 in the SDK, but I couldn't find any other values in the SDK that defines the valid/invalid ID range.  Should we enforce this ID range in our engine code?

Thanks,

Eric
最新提问 3月 12, 2018 分类:General Discussion | 用户: Eric P. (100 分)

1个回答

0 投票

What is the valid range of values that an AkGameObjectID can have in Wwise SDK 2017.X.X?

There was some confusion and a slight change of direction when listener ids initially became part of the game object id address space. The answer to your question depends on X.X. from 2017.1.1 the answer is 0x0-0x‭FFFFFFFFFFFFFFDF for example.

| In the Integration Details for Game Objects, however, it seems to tell a different story.

This resource is out of date and should be updated.

Should we enforce this ID range in our engine code?

I'd strongly recommend it, I'd go lower than the current max for when they run out of space next i.e 0x0-0x‭‭7FFFFFFFFFFFFFFF is probably a reasonable max.

-

dan

最新回答 3月 26, 2018 用户: Dan M. (380 分)
Yes, the Integration Details - Game Objects page of the SDK doc needs to be updated. For our next patch release, Wwise 2017.2.3, it will be.
...