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

Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise