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>SPInitSoundTable</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">SPInitSoundTable</h1>
14
15<h2>C Specification</h2>
16
17<dl>
18  <dd>
19<pre><CODE>#include &lt;revolution.h&gt;
20#include &lt;revolution/sp.h&gt;
21
22void SPInitSoundTable(SPSoundTable *table, u8 *samples, u8 *zerobuffer);</CODE></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27
28<table border="1" cellpadding="3" cellspacing="0.1">
29  <tr>
30<td width="120" bgcolor="#ffffe8"><em><strong><code>table</code></strong></em></td>
31    <td width="520">pointer to <code>SPSoundTable</code> for initialization</td>
32  </tr>
33  <tr>
34<td width="120" bgcolor="#ffffe8"><em><strong><code>samples</code></strong></em></td>
35    <td width="520">pointer to the sound data that corresponds to <code>SPSoundTable</code></td>
36  </tr>
37  <tr>
38    <td width="120" bgcolor="#ffffe8"><em><strong><code>zerobuffer</code></strong></em></td>
39    <td width="520">pointer to the zero buffer</td>
40  </tr>
41</table>
42
43<h2>Return Values</h2>
44
45<p>None.</p>
46
47<h2>Description</h2>
48
49<p>This function initializes the sound table (<code>SPSoundTable</code>), loaded from a disc, etc., to memory. It uses <code>samples</code> and <code>zerobuffer</code>, provided by arguments, to update individual SE information (<code>SPSoundEntry</code>) in the sound table. <CODE>SPSoundTable</CODE> must be initialized before playing SE.</p>
50
51<p> <STRONG>NB:</STRONG> <code>SPInitSoundTable</code> can only be called once for the same <code>SPSoundTable</code>.</p>
52
53<h2>See Also</h2>
54
55<p><code><a href="SPSoundTable.html">SPSoundTable</a>, <a href="SPSoundEntry.html">SPSoundEntry</a></code></p>
56
57<h2>Revision History</h2>
58<P>03/01/2006 Initial version.</P>
59
60</body>
61</html>
62