Version
menu

Wwise SDK 2024.1.9

◆ SetObjectObstructionAndOcclusion()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetObjectObstructionAndOcclusion ( AkGameObjectID  in_EmitterID,
AkGameObjectID  in_ListenerID,
AkReal32  in_fObstructionLevel,
AkReal32  in_fOcclusionLevel 
)

Sets a game object's obstruction and occlusion levels. If SetMultiplePositions were used, values are set for all positions. To assign a unique obstruction and occlusion value to each sound position, instead use AK::SoundEngine::SetMultipleObstructionAndOcclusion. This function is used to affect how an object should be heard by a specific listener.

See also
Returns
Always returns AK_Success
Parameters
in_EmitterIDEmitter game object ID
in_ListenerIDListener game object ID
in_fObstructionLevelObstructionLevel: [0.0f..1.0f]
in_fOcclusionLevelOcclusionLevel: [0.0f..1.0f]

Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise