1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
6<TITLE>AXFXSetHooks</TITLE>
7<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
8<META http-equiv="Content-Style-Type" content="text/css">
9</head>
10
11<BODY>
12
13<H1 align="left">AXFXSetHooks</H1>
14
15<H2>Syntax</H2>
16<dl><dd><pre class="construction">
17#include &lt;revolution.h&gt;
18#include &lt;revolution/axfx.h&gt;
19
20typedef void* (*AXFXAlloc)(u32);
21typedef void  (*AXFXFree) (void*);
22
23void AXFXSetHooks(AXFXAlloc alloc, AXFXFree free);
24</pre></dd></dl>
25
26<H2>Arguments</H2>
27<TABLE class="arguments" border="1" >
28  <TR>
29<TH>alloc</TH>
30<TD>Pointer to function used for allocating memory.</TD>
31  </TR>
32  <TR>
33<TH>free</TH>
34<TD>Pointer to function used for freeing memory.</TD>
35  </TR>
36</TABLE>
37
38<H2>Return Values</H2>
39<P>None.</P>
40
41<H2>Description</H2>
42<P>When the AXFX Library effects are initialized, memory is allocated for items such as delay line according to the settings for each effect. The <code>AXFXSetHooks</code> function registers to the AXFX Library the memory allocation/deallocation functions used at this time. This function <EM>must</EM> be called prior to calling any other AXFX functions.</P>
43
44<P>If this function is not called, the AXFX Library will use the <code>OSAlloc</code> and <code>OSFree</code> functions for memory allocation/deallocation.</P>
45
46<H2>See Also</H2>
47<P class="reference">
48<A href="AXFXGetHooks.html">AXFXGetHooks</A>
49</p>
50
51<H2>Revision History</H2>
52<P>
532007/08/08 Removed redundant explanations.<br>2006/03/01 Initial version.<br>
54</P>
55
56<hr><p>CONFIDENTIAL</p></body>
57</HTML>