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 function used for allocating memory.
free Pointer to function used for freeing memory.

Return Values

None.

Description

When the AXFX Library effects are initialized, memory is allocated for items, such as delay line, according to the settings for each effect. The AXFXSetHooks function registers to the AXFX Library the memory allocation/deallocation functions used at this time. This function must be called prior to calling any other AXFX functions.

If this function is not called, the AXFX Library will use the OSAlloc and OSFree functions for memory allocation/deallocation.

See Also

AXFXGetHooks

Revision History

2007/08/08 Removed redundant explanations.
2006/03/01 Initial version.


CONFIDENTIAL