版本
menu

Wwise SDK 2025.1.0
AkCmd_SA_SetRoom结构体 参考

#include <AkCommandTypes.h>

Public 属性

AkRoomID roomID
 Unique room ID, chosen by the client. 更多...
 
struct AkRoomParams params
 Parameter for the room. 更多...
 

详细描述

Add or update a room. Rooms are used to connect portals and define an orientation for oriented reverbs. This function may be called multiple times with the same ID to update the parameters of the room.

警告: The ID (roomID) must be chosen in the same manner as AkGameObjectID's, as they are in the same ID-space. The spatial audio lib manages the registration/unregistration of internal game objects for rooms that use these IDs and, therefore, must not collide. Also, the room ID must not be in the reserved range (AkUInt64)(-32) to (AkUInt64)(-2) inclusively. You may, however, explicitly add the default room ID AK_OUTDOORS_ROOM_ID (-1) in order to customize its AkRoomParams, to provide a valid auxiliary bus, for example.

Optionally, you can associate a name to the room for profiling purposes. Call AK_CommandBuffer_AddString after adding the command to attach a name to the room:

auto cmd = (AkCmd_SA_SetRoom*)AK_CommandBuffer_Add(buffer, AkCommand_SA_SetRoom);
// Fill command...
AK_CommandBuffer_AddString(buffer, "Bedroom 1");

This command can fail for the following reasons:

  • AK_InvalidParameter: roomID is outside the valid range
  • AK_InsufficientMemory: Not enough memory to complete the operation.
参见

在文件 AkCommandTypes.h1119 行定义.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅