Version
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.

Parameters
[in,out]in_bufferPointer to command buffer
[in]in_cmd_idID of command (should be one of the values listed in AkCommand enum)
Returns
Pointer to the corresponding command payload, or NULL if not enough space left in the buffer
See also
AkCommand

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