版本
menu

Wwise SDK 2025.1.2
AkCmd_SA_SetGeometry结构体 参考

#include <AkCommandTypes.h>

Public 属性

AkGeometrySetID geometrySetID
 Unique geometry set ID, chosen by client. 更多...
 

详细描述

Add or update a set of geometry from the SpatialAudio module for geometric reflection and diffraction processing. A geometry set is a logical set of vertices, triangles, and acoustic surfaces, which are referenced by the same AkGeometrySetID. The ID (geometrySetID) must be unique and is also chosen by the client in a manner similar to AkGameObjectID's. It is necessary to create at least one geometry instance for each geometry set that is to be used for diffraction and reflection simulation.

The Sound Engine expects geometry data to be added right after the command. Call AK_CommandBuffer_AddGeometry to add geometry data:

AkGeometryParams geoParams; // Initialize with valid triangles, vertices, surfaces...
auto cmd = (AkCmd_SA_SetGeometry*)AK_CommandBuffer_Add(buffer, AkCommand_SA_SetGeometry);
cmd->geometrySetID = myID;
AK_CommandBuffer_AddGeometry(buffer, &geoParams);

This command can fail for the following reasons:

  • AK_InvalidParameter: geometrySetID is invalid, or missing geometry data after the command
  • AK_InsufficientMemory: Not enough memory to complete the operation
参见

在文件 AkCommandTypes.h1453 行定义.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅