#include <revolution.h> #include <revolution/axfx.h> typedef void* (*AXFXAlloc) (u32); typedef void (*AXFXFree) (void*); void AXFXSetHooks(AXFXAlloc alloc, AXFXFree free);
alloc |
Pointer to the function for allocating memory. |
free |
Pointer to the function for freeing memory. |
None.
Call AXFXSetHooks to install custom memory allocation routines for the AXFX effects engines. This function must be called prior to any other AXFX function calls.
If hooks are not specified by the your application, AXFX defaults to the standard OSAlloc() and OSFree() functions. If this function is not called, AXFX will by default use OSAlloc and OSFree for memory allocation.
03/01/2006 Initial version.