Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2022.1.17.8543 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise SDK 2022.1.17
AkMemSettings Struct Reference

#include <AkModule.h>

Public Attributes

High-level memory allocation hooks. When not NULL, redirect allocations normally forwarded to rpmalloc.
AkMemInitForThread pfInitForThread
 (Optional) Thread-specific allocator initialization hook. More...
 
AkMemTermForThread pfTermForThread
 (Optional) Thread-specific allocator termination hook. More...
 
AkMemMalloc pfMalloc
 (Optional) Memory allocation hook. More...
 
AkMemMalign pfMalign
 (Optional) Memory allocation hook. More...
 
AkMemRealloc pfRealloc
 (Optional) Memory allocation hook. More...
 
AkMemReallocAligned pfReallocAligned
 (Optional) Memory allocation hook. More...
 
AkMemFree pfFree
 (Optional) Memory allocation hook. More...
 
AkMemTotalReservedMemorySize pfTotalReservedMemorySize
 (Optional) Memory allocation statistics hook. More...
 
AkMemSizeOfMemory pfSizeOfMemory
 (Optional) Memory allocation statistics hook. More...
 
Configuration.
AkUInt64 uMemAllocationSizeLimit
 When non-zero, limits the total amount of virtual and device memory allocated by AK::MemoryMgr. More...
 
bool bUseDeviceMemAlways
 Use device memory for all allocations (on applicable platforms). More...
 
Page allocation hooks, used by rpmalloc. Default to AKPLATFORM::AllocVM et al.
AkMemAllocVM pfAllocVM
 Virtual page allocation hook. More...
 
AkMemFreeVM pfFreeVM
 Virtual page allocation hook. More...
 
AkMemAllocVM pfAllocDevice
 Device page allocation hook. More...
 
AkMemFreeVM pfFreeDevice
 Device page allocation hook. More...
 
AkUInt32 uVMPageSize
 Virtual memory page size. Defaults to 0 which means auto-detect. More...
 
AkUInt32 uDevicePageSize
 Device memory page size. Defaults to 0 which means auto-detect. More...
 
AkUInt32 uMaxThreadLocalHeapAllocSize
 All memory allocations of sizes larger than this value will go to a global heap shared across all threads. Defaults to 0 which means all allocations go to a global heap. More...
 
Memory allocation debugging.
AkMemDebugMalloc pfDebugMalloc
 (Optional) Memory allocation debugging hook. Used for tracking calls to pfMalloc. More...
 
AkMemDebugMalign pfDebugMalign
 (Optional) Memory allocation debugging hook. Used for tracking calls to pfMalign. More...
 
AkMemDebugRealloc pfDebugRealloc
 (Optional) Memory allocation debugging hook. Used for tracking calls to pfRealloc. More...
 
AkMemDebugReallocAligned pfDebugReallocAligned
 (Optional) Memory allocation debugging hook. Used for tracking calls to pfReallocAligned. More...
 
AkMemDebugFree pfDebugFree
 (Optional) Memory allocation debugging hook. Used for tracking calls to pfFree. More...
 
AkUInt32 uMemoryDebugLevel
 Default 0 disabled. 1 debug enabled. 2 stomp allocator enabled. 3 stomp allocator and debug enabled. User implementations may use multiple non-zero values to offer different features. More...
 
AkMemTrimForThread pfTrimForThread
 (Optional) Thread-specific allocator "trimming" hook. More...
 
AkSpanCount uVMSpanCount
 Virtual memory span count for each map operation in rpmalloc. Defaults to AkSpanCount_Huge. For more information, refer to Tuning "Span Count". More...
 
AkSpanCount uDeviceSpanCount
 Device memory span count for each map operation in rpmalloc. Defaults to AkSpanCount_Huge. For more information, refer to Tuning "Span Count". More...
 

Detailed Description

Initialization settings for the default implementation of the Memory Manager. For more details, see Initialization.

See also
AK::MemoryMgr

Definition at line 154 of file AkModule.h.


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