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>Syntax</h2> 16<dl><dd><pre class="construction"> 17 #include <revolution.h> 18 #include <revolution/sp.h> 19 20 void SPInitSoundTable(SPSoundTable *table, u8 *samples, u8 *zerobuffer); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th>table</th> 27<td>Pointer to <code>SPSoundTable</code> to be initialized.</td> 28 </tr> 29 <tr> 30<th>samples</th> 31<td>Pointer to the sound data that corresponds to <code>SPSoundTable</code>.</td> 32 </tr> 33 <tr> 34<th>zerobuffer</th> 35<td>Pointer to the zero buffer. (Not used. Specify <code>NULL</code>.))</strong></td> 36 </tr> 37</table> 38 39<h2>Return Values</h2> 40<p>None.</p> 41 42<h2>Description</h2> 43<p>The <code>SPInitSoundTable</code> function initializes the sound table (<code>SPSoundTable</code>), loaded from a disc, etc., to memory. It uses <SPAN class="argument">samples</SPAN>, 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> 44 45<p><strong><em>Note:</em></strong> The <code>SPInitSoundTable</code> function can only be called once for the same <code>SPSoundTable</code>.</p> 46 47<h2>See Also</h2> 48<p class="reference"> 49<a href="SPSoundTable.html">SPSoundTable</a>, 50<a href="SPSoundEntry.html">SPSoundEntry</a> 51</p> 52 53<h2>Revision History</h2> 54<P> 552006/11/21 Added an explanation to the arguments about the zero buffer no longer being necessary.<br>2006/03/01 Initial version.<BR> 56</P> 57 58<hr><p>CONFIDENTIAL</p></body> 59</html> 60