バージョン
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.

引数
[out]out_bufferPointer to buffer space
[in]in_sizeSize of buffer in bytes
戻り値
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.

このページはお役に立ちましたか?

サポートは必要ですか?

ご質問や問題、ご不明点はございますか?お気軽にお問い合わせください。

サポートページをご確認ください

あなたのプロジェクトについて教えてください。ご不明な点はありませんか。

プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。

Wwiseからはじめよう