AXFXSetHooks

C Specification

#include <revolution.h>
#include <revolution/axfx.h>

typedef void* (*AXFXAlloc) (u32);
typedef void (*AXFXFree) (void*);

void AXFXSetHooks(AXFXAlloc alloc, AXFXFree free);

Arguments

alloc Pointer to the function for allocating memory.
free Pointer to the function for freeing memory.

Return Values

None.

Description

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.

See Also

Revision History

03/01/2006 Initial version.