版本

menu_open
Wwise SDK 2019.1.11

◆ GetMaxRadius() [2/2]

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::Query::GetMaxRadius ( AkRadiusList io_RadiusList )

Returns the maximum distance used in attenuations associated to all sounds currently playing. This may be used for example by the game to know if some processing need to be performed on the game side, that would not be required if the object is out of reach anyway.

Example usage:

/*******************************************************/
AkRadiusList RadLst; //creating the list( array ).
// Do not reserve any size for the array,
// the system will reserve the correct size.
GetMaxRadius( RadLst );
// Use the content of the list
(...)
RadLst.Term();// the user is responsible to free the memory allocated
/*******************************************************/
备注: The returned value is NOT the distance from a listener to an object but the maximum attenuation distance of all sounds playing on this object. This is not related in any way to the curent 3D position of the object.
返回
  • AK_Success if succeeded
  • AK_InsuficientMemory if there was not enough memory
备注: The Scaling factor (if one was specified on the game object) is included in the return value. The Scaling factor is not updated once a sound starts playing since it is computed only when the playback starts with the initial scaling factor of this game object. Scaling factor will be re-computed for every playback instance, always using the scaling factor available at this time.
参见
参数
io_RadiusList List that will be filled with AK::SoundEngine::Query::GameObjDst objects.
AkArray< GameObjDst, const GameObjDst &, ArrayPoolDefault, 32 > AkRadiusList
AKSOUNDENGINE_API AKRESULT GetMaxRadius(AkRadiusList &io_RadiusList)

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅