版本

menu_open
Wwise SDK 2022.1.12

◆ SetPortal()

AKSOUNDENGINE_API AKRESULT AK::SpatialAudio::SetPortal ( AkPortalID  in_PortalID,
const AkPortalParams in_Params,
const char *  in_PortalName = nullptr 
)

Add or update an acoustic portal. A portal is an opening that connects two or more rooms to simulate the transmission of reverberated (indirect) sound between the rooms. This function may be called multiple times with the same ID to update the parameters of the portal. The ID (in_PortalID) must be chosen in the same manner as AkGameObjectID's, as they are in the same ID-space. The spatial audio lib manages the registration/unregistration of internal game objects for portals that use these IDs, and therefore must not collide.

参见
参数
in_PortalIDUnique portal ID, chosen by the client.
in_ParamsParameter for the portal.
in_PortalNameName used to identify portal (optional)

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅