Attention : vous avez été redirigé vers la plus récente documentation correspondant à votre version générale ( 2019.1.11.7296 ). Si vous souhaitez accéder à la documentation de votre version précise, veuillez télécharger la documentation hors ligne depuis l'Audiokinetic Launcher et sélectionner l'option de documentation Offline dans l'application de création Wwise.
31 #ifndef _IAKPLUGINMEMALLOC_H_
32 #define _IAKPLUGINMEMALLOC_H_
34 #include <AK/SoundEngine/Common/AkTypes.h>
35 #include <AK/SoundEngine/Common/AkMemoryMgr.h>
68 #if defined (AK_MEMDEBUG)
72 virtual void * dMalloc(
74 const char* in_pszFile,
82 #if defined (AK_MEMDEBUG)
84 AkForceInline
void *
operator</span> new(size_t size,AK::IAkPluginMemAlloc * in_pAllocator,const char* szFile,AkUInt32 ulLine) throw()
86 return in_pAllocator->dMalloc( size, szFile, ulLine );
89 AkForceInline
void operator</span> delete(void *, AK::IAkPluginMemAlloc *, const char*, AkUInt32) throw() {}
95 return in_pAllocator->Malloc( size );
100 #if defined (AK_MEMDEBUG)
101 #define AK_PLUGIN_NEW(_allocator,_what) new((_allocator),__FILE__,__LINE__) _what
102 #define AK_PLUGIN_ALLOC(_allocator,_size) (_allocator)->dMalloc((_size),__FILE__,__LINE__)
112 #define AK_PLUGIN_NEW(_allocator,_what) new(_allocator) _what
121 #define AK_PLUGIN_ALLOC(_allocator,_size) (_allocator)->Malloc((_size))
136 in_pAllocator->
Free( in_pObject );
146 #define AK_PLUGIN_FREE(_allocator,_pvmem) (_allocator)->Free((_pvmem))
148 #endif // _IAKPLUGINMEMALLOC_H_
virtual void * Malloc(size_t in_uSize)=0
virtual ~IAkPluginMemAlloc()
Virtual destructor on interface to avoid warnings.
virtual void Free(void *in_pMemAddress)=0
Besoin d'aide ?
Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !
Visitez notre page d'Aide
Dé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