Version

    Other Documentation

menu_open
Wwise SDK 2018.1.11

◆ CreatePool()

AkMemPoolId __cdecl AK::MemoryMgr::CreatePool ( void *  in_pMemAddress,
AkUInt32  in_uMemSize,
AkUInt32  in_uBlockSize,
AkUInt32  in_eAttributes,
AkUInt32  in_uBlockAlign = 0 
)

Create a new memory pool.

Returns
The ID of the created memory pool, or AK_INVALID_POOL_ID if creation failed
Tip: Refer to Pools for information about pool resource overhead.
See also
Parameters
in_pMemAddress Memory address of the pool, or NULL if it should be allocated
in_uMemSize Size of the pool (in bytes)
in_uBlockSize Size of a block (in bytes)
in_eAttributes Memory pool attributes: use values of AkMemPoolAttributes
in_uBlockAlign Alignment of memory blocks. Some plug-ins and specific processors may require specific data alignment. When allocating space for sound bank data, we recommend using AK_BANK_PLATFORM_DATA_ALIGNMENT.

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