Table of Contents

AKRESULT __cdecl AK::SpatialAudio::SetGameObjectInRoom ( AkGameObjectID  in_gameObjectID,
AkRoomID  in_CurrentRoomID  
)

Set the room that the game object is currently located in - usually the result of a containment test performed by the client. The room must have been registered with SetRoom. Setting the room for a game object provides the basis for the sound propagation service, and also sets which room's reverb aux bus to send to. The sound propagation service traces the path of the sound from the emitter to the listener, and calculates the diffraction as the sound passes through each portal. The portals are used to define the spatial location of the diffracted and reverberated audio.

See also:
Parameters:
in_gameObjectID  Game object ID
in_CurrentRoomID  RoomID that was passed to AK::SpatialAudio::SetRoom