Wwise SDK 2021.1.14
Version
menu_open
link
Wwise SDK 2021.1.14
|
AkMemoryMgr.h
Go to the documentation of this file.
73 };
110 AkUInt64 uReserved; ///< Total reserved memory. (Used and unused). Will return 0 if the reserved memory is not traceable.
111 AkUInt64 uMax; ///< Maximum total allocation size, specified in the initialization settings through uMemAllocationSizeLimit. Will be 0 if no limit was set.
119 /// \warning This function is not thread-safe. It should not be called at the same time as MemoryMgr::Init or MemoryMgr::Term.
127 /// \warning This function is not thread-safe. It is not valid to allocate memory or otherwise interact with the memory manager during or after this call.
132 /// Performs whatever steps are required to initialize a thread for use with the memory manager.
134 /// The default implementation of the memory manager performs thread initialization automatically and therefore this call is optional.
135 /// For implementations where the cost of automatically initializing a thread for use with an allocator would be prohibitively expensive
136 /// this call allows you to perform the initialization once during, for example, thread creation.
142 /// The default implementation of the memory manager requires that all threads that interact with the memory manager call this function prior
143 /// to either their termination or the termination of the memory manager. Threads not created by the sound engine itself will not have this
145 /// Take care to call this function for any thread, not owned by wwise, that may have interacted with the memory manager. For example job system workers.
158 /// \return A pointer to the start of the allocated memory (NULL if the allocation could not be completed)
170 /// \return A pointer to the start of the allocated memory (NULL if the allocation could not be completed)
180 /// \return A pointer to the start of the reallocated memory (NULL if the allocation could not be completed)
193 /// \return A pointer to the start of the reallocated memory (NULL if the allocation could not be completed)
204 /// \return A pointer to the start of the reallocated memory (NULL if the allocation could not be completed)
218 /// \return A pointer to the start of the reallocated memory (NULL if the allocation could not be completed)
238 /// \return A pointer to the start of the allocated memory (NULL if the allocation could not be completed)
251 /// \return A pointer to the start of the allocated memory (NULL if the allocation could not be completed)
267 /// \note Be aware of the potentially incoherent nature of reporting such information during concurrent modification by multiple threads.
274 /// \note Be aware of the potentially incoherent nature of reporting such information during concurrent modification by multiple threads.
280 /// \note Not implementing this will result in the Soundbank tab of the Wwise Profiler to show 0 bytes for memory usage.
285 /// \return The amount of memory allocated by this thread since StartProfileThreadUsage was called.
286 /// \note Not implementing this will result in the Soundbank tab of the Wwise Profiler to show 0 bytes for memory usage.
@ AkMemID_Processing
Anything tied to instancing and processing of the DSP graph.
Definition: AkMemoryMgr.h:53
AKSOUNDENGINE_API void DumpToFile(const AkOSChar *pszFilename)
AKSOUNDENGINE_API void TermForThread()
AKSOUNDENGINE_API void * dRealloc(AkMemPoolId in_poolId, void *in_pAlloc, size_t in_uSize, const char *in_pszFile, AkUInt32 in_uLine)
AkUInt64 uDeviceUsed
Total device memory used including all categories (in bytes)
Definition: AkMemoryMgr.h:109
AKSOUNDENGINE_API void * dMalloc(AkMemPoolId in_poolId, size_t in_uSize, const char *in_pszFile, AkUInt32 in_uLine)
@ AkMemID_Object
Generic placeholder for allocations tied to the Wwise project.
Definition: AkMemoryMgr.h:48
AKSOUNDENGINE_API void * dMalign(AkMemPoolId in_poolId, size_t in_uSize, AkUInt32 in_uAlignment, const char *in_pszFile, AkUInt32 in_uLine)
AKSOUNDENGINE_API void Free(AkMemPoolId in_poolId, void *in_pMemAddress)
AKSOUNDENGINE_API void * Malloc(AkMemPoolId in_poolId, size_t in_uSize)
AKSOUNDENGINE_API void Term()
AKSOUNDENGINE_API void GetGlobalStats(GlobalStats &out_stats)
AKSOUNDENGINE_API void InitForThread()
AkUInt64 uReserved
Total reserved memory. (Used and unused). Will return 0 if the reserved memory is not traceable.
Definition: AkMemoryMgr.h:110
AkUInt64 uMax
Maximum total allocation size, specified in the initialization settings through uMemAllocationSizeLim...
Definition: AkMemoryMgr.h:111
AKSOUNDENGINE_API void * dReallocAligned(AkMemPoolId in_poolId, void *in_pAlloc, size_t in_uSize, AkUInt32 in_uAlignment, const char *in_pszFile, AkUInt32 in_uLine)
AKSOUNDENGINE_API void * Malign(AkMemPoolId in_poolId, size_t in_uSize, AkUInt32 in_uAlignment)
Definition: AkModule.h:139
AKSOUNDENGINE_API void StartProfileThreadUsage()
AKSOUNDENGINE_API void * Realloc(AkMemPoolId in_poolId, void *in_pAlloc, size_t in_uSize)
AKSOUNDENGINE_API AkUInt64 StopProfileThreadUsage()
Definition: AkMemoryMgr.h:90
@ AkMemID_ProcessingPlugin
Plug-in allocations related to the DSP graph.
Definition: AkMemoryMgr.h:54
Definition: AkMemoryMgr.h:107
AKSOUNDENGINE_API void GetCategoryStats(AkMemPoolId in_poolId, CategoryStats &out_poolStats)
AKSOUNDENGINE_API bool IsInitialized()
AKSOUNDENGINE_API void * ReallocAligned(AkMemPoolId in_poolId, void *in_pAlloc, size_t in_uSize, AkUInt32 in_uAlignment)
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'AideDé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