31 #include <AK/SoundEngine/Common/AkMemoryMgr.h>
33 extern AKSOUNDENGINE_API AkMemPoolId g_DefaultPoolId;
34 extern AKSOUNDENGINE_API AkMemPoolId g_LEngineDefaultPoolId;
48 AkForceInline
void *
operator</span> new( size_t , void * memory, const AkPlacementNewKey & ) throw()
53 #define AkPlacementNew(_memory) ::new( _memory, AkPlacementNewKey() )
57 AkForceInline
void operator</span> delete( void *, void *, const AkPlacementNewKey & ) throw() {}
71 #if defined (AK_MEMDEBUG)
72 #define AkNew(_pool,_what) new((_pool),AkPoolNewKey(),__FILE__,__LINE__) _what
73 #define AkAlloc(_pool,_size) (AK::MemoryMgr::dMalloc((_pool),_size,__FILE__,__LINE__))
74 #define AkNew2(_ptr,_pool,_type,_what) { _ptr = (_type *) AK::MemoryMgr::dMalloc((_pool),sizeof(_type),__FILE__,__LINE__); if ( _ptr ) AkPlacementNew( _ptr ) _what; }
75 #define AkMalign(_pool,_size,_align) (AK::MemoryMgr::dMalign((_pool),_size,_align, __FILE__,__LINE__))
76 #define AkNewAligned(_pool,_what,_align) new((_pool),AkPoolNewKey(),(_align),__FILE__,__LINE__) _what
78 #define AkNew(_pool,_what) new((_pool),AkPoolNewKey()) _what
79 #define AkAlloc(_pool,_size) (AK::MemoryMgr::Malloc((_pool),_size))
80 #define AkNew2(_ptr,_pool,_type,_what) { _ptr = (_type *) AK::MemoryMgr::Malloc((_pool),sizeof(_type)); if ( _ptr ) AkPlacementNew( _ptr ) _what; }
81 #define AkMalign(_pool,_size,_align) (AK::MemoryMgr::Malign((_pool),_size,_align))
82 #define AkNewAligned(_pool,_what,_align) new((_pool),AkPoolNewKey(),(_align)) _what
85 #define AkFree(_pool,_pvmem) (AK::MemoryMgr::Free((_pool),(_pvmem)))
86 #define AkFalign(_pool,_pvmem) (AK::MemoryMgr::Falign((_pool),(_pvmem)))
87 #define AkRealloc(_pool, _pvmem, _size) (AK::MemoryMgr::Realloc((_pool), _pvmem, _size))
89 #if defined (AK_MEMDEBUG)
91 AkForceInline
void *
operator</span> new(size_t size,AkMemPoolId in_PoolId,const AkPoolNewKey &,const char* szFile,AkUInt32 ulLine) throw()
93 return AK::MemoryMgr::dMalloc( in_PoolId, size, szFile, ulLine );
96 AkForceInline
void *
operator</span> new(size_t size,AkMemPoolId in_PoolId,const AkPoolNewKey &,AkUInt32 in_align,const char* szFile,AkUInt32 ulLine) throw()
98 return AK::MemoryMgr::dMalign( in_PoolId, size, in_align, szFile, ulLine );
101 AkForceInline
void operator</span> delete(void *,AkMemPoolId,const AkPoolNewKey &,const char*,AkUInt32) throw() {}
102 AkForceInline
void operator</span> delete(void *,AkMemPoolId,const AkPoolNewKey &,AkUInt32,const char*,AkUInt32) throw() {}
106 AkForceInline
void *
operator</span> new(size_t size,AkMemPoolId in_PoolId,const AkPoolNewKey &) throw()
111 AkForceInline
void *
operator</span> new(size_t size,AkMemPoolId in_PoolId,const AkPoolNewKey &,AkUInt32 in_align) throw()
116 AkForceInline
void operator</span> delete(void *,AkMemPoolId,const AkPoolNewKey &) throw() {}
117 AkForceInline
void operator</span> delete(void *,AkMemPoolId,const AkPoolNewKey &,AkUInt32) throw() {}
122 AkForceInline
void AkDelete( AkMemPoolId in_PoolId, T * in_pObject )
132 AkForceInline
void AkDeleteAligned( AkMemPoolId in_PoolId, T * in_pObject )
141 #endif // _AK_OBJECT_H_
AKSOUNDENGINE_API AKRESULT Falign(AkMemPoolId in_poolId, void *in_pMemAddress)
AKSOUNDENGINE_API void * Malloc(AkMemPoolId in_poolId, size_t in_uSize)
Unique structure identifier for AkNew.
AKSOUNDENGINE_API AKRESULT Free(AkMemPoolId in_poolId, void *in_pMemAddress)
Unique structure identifier for AkPlacementNew.
AkForceInline AkPlacementNewKey()
ctor
AKSOUNDENGINE_API void * Malign(AkMemPoolId in_poolId, size_t in_uSize, AkUInt32 in_uAlignment)
AkForceInline AkPoolNewKey()
ctor
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