Version

    Other Documentation

menu_open
Wwise SDK 2018.1.11

◆ SetGameObjectInRoom()

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

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