Version

menu_open
AKRESULT __cdecl AK::SpatialAudio::SetPortalObstruction ( AkPortalID  in_PortalID,
AkReal32  in_fObstruction  
)

Set the obstruction 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 should relate to how much of the opening is obstructed, and must be calculated by the client. Only portals connecting directly to the listeners current room need to have their obstruction value updated. If the listener moves to a new room, the new set of portals must be updated.

Parameters:
in_PortalID  Portal ID.
in_fObstruction  Obstruction value. Valid range 0.f-1.f

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise