Firelight Technologies FMOD Studio API
FSBANK_MEMORY_ALLOC_CALLBACK
Callback to allocate a block of memory.
C/C++ Syntax
void * FSBANK_CALLBACK FSBANK_MEMORY_ALLOC_CALLBACK(
unsigned int size,
unsigned int type,
const char *sourceStr
);
Parameters
size
Size in bytes of the memory block to be allocated and returned.
type
Type of memory allocation.
sourceStr
Only valid (not null) in logging versions of FMOD. Gives a string with the fmod source code filename and line number in it, for better resource tracking.
Return Values
On success, a pointer to the newly allocated block of memory is returned.
On failure, NULL is returned.
Remarks
Returning an aligned pointer, of 16 byte alignment is recommended for speed purposes.
See Also
Version 1.10.02 Built on Dec 7, 2017