Wwise SDK 2025.1.0
|
◆ AK_CommandBuffer_Remove()
Remove the last-added command from the command buffer. This function can be useful when the buffer does not have enough space left for a command's extra data. For example, using the auto cmd = (AkCmd_SetListeners*)AK_CommandBuffer_Add(buffer, AkCommand_SetListeners); cmd->gameObjectID = 100; cmd->numListenerIDs = mylistenerArray.size(); if (!AK_CommandBuffer_AddArray(buffer, sizeof(AkGameObjectID), mylistenerArray.size(), mylistenerArray.data())) AK_CommandBuffer_Remove(buffer); // Not enough space for the array, so remove the last command (SetListeners) This function is a no-op when called on an empty command buffer.
|
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageRegister your project and we'll help you get started with no strings attached!
Get started with Wwise