版本

menu_open
Wwise SDK 2019.1.11

◆ SetPortalObstructionAndOcclusion()

AKSOUNDENGINE_API AKRESULT AK::SpatialAudio::SetPortalObstructionAndOcclusion ( AkPortalID  in_PortalID,
AkReal32  in_fObstruction,
AkReal32  in_fOcclusion 
)

Set the obstruction and occlusion value for a portal that has been registered with Spatial Audio. Portal obstruction is used to simulate objects between the portal and the listener that are obstructing the sound coming from the portal.
The obstruction value affects only the portals dry path, and should relate to how much of the opening is obstructed, and must be calculated by the client. It is applied to the room's game object, as well as to all the emitters virtual positions which propagate from that room through this portal. Portal occlusion is applied only on the room game object, and affects both the wet and dry path of the signal emitted from the room's bus.

参见
参数
in_PortalID Portal ID.
in_fObstruction Obstruction value. Valid range 0.f-1.f
in_fOcclusion Occlusion value. Valid range 0.f-1.f

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅