Wwise SDK 2023.1.5

◆ QueryWetDiffraction()

AKSOUNDENGINE_API AKRESULT AK::SpatialAudio::QueryWetDiffraction ( AkPortalID  in_portal,
AkReal32 out_wetDiffraction 

Query information about the wet diffraction amount for the portal in_portal, returned as a normalized value out_wetDiffraction in the range [0,1].
The wet diffraction is calculated from how far into the 'shadow region' the listener is from the portal. Unlike dry diffraction, the wet diffraction does not depend on the incident angle, but only the normal of the portal. This value is applied by spatial audio, to the Diffraction value and built-in game parameter of the room game object that is on the other side of the portal (relative to the listener). This function must acquire the global sound engine lock and therefore, may block waiting for the lock.

See also
in_portalThe ID of the game object that the client wishes to query.
out_wetDiffractionThe number of slots in out_aPaths, after returning the number of valid elements written.

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