Go to the documentation of this file.
44 typedef void* ( *AkMemMalloc ) (
49 typedef void* ( *AkMemMalign ) (
55 typedef void* ( *AkMemRealloc ) (
118 typedef void * ( *AkMemAllocVM ) (
AkMemDebugCheckForOverwrite pfDebugCheckForOverwrite
(Optional) Memory allocation debugging hook. Used for detecting memory overwrites.
void(* AkMemDebugMalloc)(AkMemPoolId poolId, size_t uSize, void *pAddress, char const *pszFile, AkUInt32 uLine)
AkMemTermForThread pfTermForThread
(Optional) Thread-specific allocator termination hook.
void(* AkMemInitForThread)()
AkMemInitForThread pfInitForThread
(Optional) Thread-specific allocator initialization hook.
AkMemFree pfFree
(Optional) Memory allocation hook.
AkMemMalign pfMalign
(Optional) Memory allocation hook.
AKSOUNDENGINE_API AKRESULT Init(AkMemSettings *in_pSettings)
#define AK_EXTERNAPIFUNC(_type, _name)
AkMemRealloc pfRealloc
(Optional) Memory allocation hook.
AkMemFreeVM pfFreeVM
Virtual page allocation hook.
AKRESULT
Standard function call result.
void *(* AkMemRealloc)(AkMemPoolId poolId, void *pAddress, size_t uSize)
AkInt32 AkMemPoolId
Memory pool ID.
AkMemDebugRealloc pfDebugRealloc
(Optional) Memory allocation debugging hook. Used for tracking calls to pfRealloc.
void(* AkMemDebugRealloc)(AkMemPoolId poolId, void *pOldAddress, size_t uSize, void *pNewAddress, char const *pszFile, AkUInt32 uLine)
void *(* AkMemAllocVM)(size_t size, size_t *extra)
void *(* AkMemMalloc)(AkMemPoolId poolId, size_t uSize)
AkMemFreeVM pfFreeDevice
Device page allocation hook.
size_t(* AkMemTotalReservedMemorySize)()
AkMemAllocVM pfAllocVM
Virtual page allocation hook.
void(* AkMemTermForThread)()
AkUInt64 uMemAllocationSizeLimit
When non-zero, limits the total amount of virtual and device memory allocated by AK::MemoryMgr.
void(* AkMemFree)(AkMemPoolId poolId, void *pAddress)
AKSOUNDENGINE_API void GetDefaultSettings(AkMemSettings &out_pMemSettings)
Obtain the default initialization settings for the default implementation of the Memory Manager.
void *(* AkMemMalign)(AkMemPoolId poolId, size_t uSize, AkUInt32 uAlignment)
AkUInt32 uDevicePageSize
Device memory page size. Defaults to 0 which means auto-detect.
AkMemTotalReservedMemorySize pfTotalReservedMemorySize
(Optional) Memory allocation statistics hook.
AkMemMalloc pfMalloc
(Optional) Memory allocation hook.
AkMemFalign pfFalign
(Optional) Memory allocation hook.
void(* AkMemDebugFalign)(AkMemPoolId poolId, void *pAddress)
void(* AkMemFreeVM)(void *address, size_t size, size_t extra, size_t release)
AkMemDebugMalloc pfDebugMalloc
(Optional) Memory allocation debugging hook. Used for tracking calls to pfMalloc.
AkMemDebugFalign pfDebugFalign
(Optional) Memory allocation debugging hook. Used for tracking calls to pfFalign.
size_t(* AkMemSizeOfMemory)(AkMemPoolId poolId, void *pAddress)
AkUInt32 uVMPageSize
Virtual memory page size. Defaults to 0 which means auto-detect.
void(* AkMemFalign)(AkMemPoolId poolId, void *pAddress)
void(* AkMemDebugMalign)(AkMemPoolId poolId, size_t uSize, AkUInt32 uAlignment, void *pAddress, char const *pszFile, AkUInt32 uLine)
AKRESULT(* AkMemDebugCheckForOverwrite)()
void(* AkMemDebugFree)(AkMemPoolId poolId, void *pAddress)
AkMemDebugFree pfDebugFree
(Optional) Memory allocation debugging hook. Used for tracking calls to pfFree.
AkMemSizeOfMemory pfSizeOfMemory
(Optional) Memory allocation statistics hook.
AkMemDebugMalign pfDebugMalign
(Optional) Memory allocation debugging hook. Used for tracking calls to pfMalign.
AkMemAllocVM pfAllocDevice
Device page allocation hook.
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