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

Parameters
[out]out_bufferPointer to buffer space
[in]in_sizeSize of buffer in bytes
Returns
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.

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