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>
20#include &lt;revolution.h&gt;
21#include &lt;revolution/sp.h&gt;
22
23void SPInitSoundTable(SPSoundTable *table, u8 *samples, u8 *zerobuffer);
24  </CODE></pre>
25  </dd>
26</dl>
27
28<h2>Arguments</h2>
29
30<table border="1" cellpadding="3" cellspacing="0.1">
31  <tr>
32<td width="120" bgcolor="#ffffe8"><em><strong><code>table</code></strong></em></td>
33<td width="520">pointer to <code>SPSoundTable</code> for initialization</td>
34  </tr>
35  <tr>
36<td width="120" bgcolor="#ffffe8"><em><strong><code>samples</code></strong></em></td>
37<td width="520">pointer to the sound data that corresponds to <code>SPSoundTable</code></td>
38  </tr>
39  <tr>
40<td width="120" bgcolor="#ffffe8"><em><strong><code>zerobuffer</code></strong></em></td>
41<td width="520">Pointer to the zero buffer. <strong>(Not used. Specify <code>NULL</code>.)</strong></td>
42  </tr>
43</table>
44
45<h2>Return Values</h2>
46
47<p>None.</p>
48
49<h2>Description</h2>
50
51<p>This function initializes the sound table (<code>SPSoundTable</code>), loaded from a disc, etc., to memory. It uses samples, 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>
52
53<p> <STRONG>Note:</STRONG> <code>SPInitSoundTable</code> can only be called once for the same <code>SPSoundTable</code>.</p>
54
55<h2>See Also</h2>
56
57<p><code><a href="SPSoundTable.html">SPSoundTable</a>, <a href="SPSoundEntry.html">SPSoundEntry</a></code></p>
58
59<h2>Revision History</h2>
60<P>
612006/11/21 Added an explanation to the arguments about the zero buffer no longer being necessary.<br>2006/03/01 Initial version.
62</P>
63<hr>
64<P>CONFIDENTIAL</p>
65</BODY>
66</HTML>
67