Version
menu

◆ AK_CommandBuffer_Next()

AKSOUNDENGINE_API int AK_CommandBuffer_Next ( struct AkCommandBufferIterator inout_iterator)

Function to iterate over the next command in the buffer. A loop going over all commands in a buffer would be structured as follows:

struct AkCommandBufferIterator it;
AK_CommandBuffer_Begin(buffer, &it);
while (AK_CommandBuffer_Next(&it)) {
    printf("Command ID: %d; Command payload: %p\n", it.header->cmd, it.payload);
}
Parameters
[in,out]inout_iteratorPointer to iterator initialized with AK_CommandBuffer_Begin
Returns
non-zero when iterator points to the next command, zero if all commands have been iterated over.
See also

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise