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>SPSoundEntry</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">SPSoundEntry</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
22typedef struct
23{
24      u32             type;
25      u32             sampleRate;
26      u32             loopAddr;
27      u32             loopEndAddr;
28      u32             endAddr;
29      u32             currentAddr;
30      SPAdpcmEntry    *adpcm;
31
32} SPSoundEntry;</CODE></pre>
33  </dd>
34</dl>
35
36<h2>Elements</h2>
37
38<table border="1" cellpadding="3" cellspacing="0.1">
39  <tr>
40<td width="120" bgcolor="#ffffe8"><em><strong><code>type</code></strong></em></td>
41    <td width="520">SE data format and indication of looping <BR>One of the following values:<br> <code>#define SP_TYPE_ADPCM_ONESHOT    0<br> #define SP_TYPE_ADPCM_LOOPED    1<br> #define SP_TYPE_PCM16_ONESHOT    2<br> #define SP_TYPE_PCM16_LOOPED    3<br> #define SP_TYPE_PCM8_ONESHOT    4<br> #define SP_TYPE_PCM8_LOOPED    5</code></td>
42  </tr>
43  <tr>
44<td width="120" bgcolor="#ffffe8"><em><strong><code>sampleRate</code></strong></em></td>
45    <td width="520">the SE play frequency (in Hz)</td>
46  </tr>
47  <tr>
48    <td width="120" bgcolor="#ffffe8"><em><strong><code>loopAddr</code></strong></em></td>
49    <td width="520">the loop start address <BR>This will be converted to an appropriate address unit, according to the data format.</td>
50  </tr>
51  <tr>
52    <td width="120" bgcolor="#ffffe8"><em><strong><code>loopEndAddr</code></strong></em></td>
53    <td width="520">the loop end address <BR>This will be converted to an appropriate address unit, according to the data format.</td>
54  </tr>
55  <tr>
56    <td width="120" bgcolor="#ffffe8"><em><strong><code>endAddr</code></strong></em></td>
57    <td width="520">the data end address <BR>This will be converted to an appropriate address unit, according to the data format.</td>
58  </tr>
59  <tr>
60    <td width="120" bgcolor="#ffffe8"><em><strong><code>currentAddr</code></strong></em></td>
61    <td width="520">the data start address <BR>This will be converted to an appropriate address unit, according to the data format.</td>
62  </tr>
63  <tr>
64<td width="120" bgcolor="#ffffe8"><em><strong><code>adpcm</code></strong></em></td>
65    <td width="520">pointer to the decoding information (<code>SPAdpcmEntry</code>) that is required for ADPCM formatted data</td>
66  </tr>
67</table>
68
69<h2>Description</h2>
70
71<p>This structure contains information regarding each SE in the sound table (<code>SPSoundTable</code>).</p>
72
73<h2>See Also</h2>
74
75<p><code><a href="SPInitSoundTable.html">SPInitSoundTable</a>, <a href="SPGetSoundEntry.html">SPGetSoundEntry</a>, <a href="SPPrepareSound.html">SPPrepareSound</a>, <a href="SPPrepareEnd.html">SPPrepareEnd</a>, <a href="SPSoundTable.html">SPSoundTable</a>, <a href="SPAdpcmEntry.html">SPAdpcmEntry</a></code></p>
76
77<h2>Revision History</h2>
78<P>03/01/2006 Initial version.</P>
79
80</body>
81</html>
82