版本
menu

◆ AK_CommandBuffer_Init()

AKSOUNDENGINE_API struct AkCommandBufferHeader* AK_CommandBuffer_Init ( void *  out_buffer,
size_t  in_size 
)

Initialize a previously-allocated command buffer. Clears any previous data contained in the buffer. A buffer can be re-initialized multiple times with this function.

Note that it is the responsibility of the caller to allocate the buffer. Use AK_CommandBuffer_MinSize and AK_CommandBuffer_CmdSize to determine how much space to allocate for the planned buffer. Ensure the allocated buffer is aligned on 4 bytes.

Alternatively, use AK_CommandBuffer_Create to allocate and initialize the buffer in one call.

参数
[out]out_bufferPointer to buffer space
[in]in_sizeSize of buffer in bytes
返回
Pointer to initialized command buffer header on success, NULL if buffer is smaller than the value returned by AK_CommandBuffer_MinSize or buffer not aligned on 4 bytes.

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅