版本
menu

◆ AK_CommandBuffer_Add()

AKSOUNDENGINE_API void* AK_CommandBuffer_Add ( void *  in_buffer,
enum AkCommand  in_cmd_id 
)

Reserve space for a command in the command buffer When this function returns a non-null pointer, the space reserved is zero'ed out. It is the responsibility of the caller to write the correct payload data in the command's reserved space.

The buffer must be initialized prior to calling this function, either using AK_CommandBuffer_Create or AK_CommandBuffer_Init. Passing an un-initialized buffer results in undefined behavior.

参数
[in,out]in_bufferPointer to command buffer
[in]in_cmd_idID of command (should be one of the values listed in AkCommand enum)
返回
Pointer to the corresponding command payload, or NULL if not enough space left in the buffer
参见
AkCommand

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅