版本

menu_open
Wwise SDK 2024.1.0

◆ RoomGameObj_KeepRegistered

bool AkRoomParams::RoomGameObj_KeepRegistered

If set to true, the room game object is registered on calling SetRoom(), and not released until the room is deleted or removed with RemoveRoom(). If set to false, Spatial Audio registers the room object only when it is needed by the sound propagation system for the purposes of reverb, and unregisters the game object when all reverb tails are finished. We recommend that you set RoomGameObj_KeepRegistered to true if you use RTPCs on the room game object, if you call SetScalingFactor(), or call PostEvent() for the purpose of ambience or room tones.

备注: The room game object can be accessed through the ID that is passed to SetRoom() and the AkRoomID::AsGameObjectID() method. Posting an event on the room game object uses automatic room game object placement by Spatial Audio so that when the listener is inside the room, the sound comes from all around the listener, and when the listener is outside the room, the sound comes from the portal(s). Typically, this would be used for surround ambience beds or room tones. For point source sounds, use separate game objects that are registered as Spatial Audio emitters.
参见

在文件 AkSpatialAudio.h492 行定义.


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅