1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7    <title>DisposeCallback</title>
8  </head>
9  <body>
10    <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/snd/Overview.html">snd</a>::<a href="../../../nw/snd/SoundHeap/Overview.html">SoundHeap</a>::DisposeCallback</CODE> Type</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nw/snd/snd_SoundHeap.h&gt;
14typedef void(* nw::snd::SoundHeap::DisposeCallback)(void *mem, unsigned long size, void *userArg);</pre>
15    </div>
16    <h2>Arguments</h2>
17    <div class="section">
18      <table class="arguments">
19        <thead>
20          <tr>
21            <td width="15" />
22            <th>Name</th>
23            <td>Description</td>
24          </tr>
25        </thead>
26        <tr>
27          <td>in</td>
28          <th>mem</th>
29          <td>Start address of the freed memory block.</td>
30        </tr>
31        <tr>
32          <td>in</td>
33          <th><CODE>size</CODE></th>
34          <td>Size of the freed memory block.</td>
35        </tr>
36        <tr>
37          <td>in</td>
38          <th>userArg</th>
39          <td>The user argument</td>
40        </tr> </table>
41    </div>
42    <h2>Description</h2>
43    <div class="section">
44      <p>Called when a memory block has been destroyed.</p><p>The callback function is passed to the memory block as an argument of <span><span>SoundHeap::Alloc</span></span> and invoked when that memory block is freed by either <span><span>SoundHeap::Clear</span></span> or <span><span>SoundHeap::LoadState</span></span>.</p></div>
45    <h2>See Also</h2>
46    <div class="section">
47      <p class="reference"><a href="../../../nw/snd/SoundHeap/Alloc.html">Alloc</a><br /><a href="../../../nw/snd/SoundHeap/Clear.html">Clear</a><br /><a href="../../../nw/snd/SoundHeap/LoadState.html">LoadState</a><br /> </p>
48    </div>
49    <h2>Revision History</h2>
50    <div class="section">
51      <dl class="history">
52        <dt>2010/01/15</dt>
53        <dd>Added Alloc, Clear and LoadState to See Also.<br />
54        </dd>
55        <dt>2010/01/14</dt>
56        <dd>Initial version.<br />
57        </dd>
58      </dl>
59    </div>
60  <hr><p>CONFIDENTIAL</p></body>
61</html>
62