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>Syntax</h2> 16<dl><dd><pre class="construction"> 17 #include <revolution.h> 18 #include <revolution/sp.h> 19 20 typedef struct 21 { 22 u32 type; 23 u32 sampleRate; 24 u32 loopAddr; 25 u32 loopEndAddr; 26 u32 endAddr; 27 u32 currentAddr; 28 SPAdpcmEntry *adpcm; 29 30 } SPSoundEntry; 31</pre></dd></dl> 32 33<h2>Elements</h2> 34<TABLE class="arguments" border="1" > 35 <tr> 36<th>type</th> 37<td>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> 38 </tr> 39 <tr> 40<th>sampleRate</th> 41<td>The SE playback frequency (in Hz)</td> 42 </tr> 43 <tr> 44<th>loopAddr</th> 45<td>the loop start address <BR>This will be converted to an appropriate address unit, according to the data format.</td> 46 </tr> 47 <tr> 48<th>loopEndAddr</th> 49<td>the loop end address <BR>This will be converted to an appropriate address unit, according to the data format.</td> 50 </tr> 51 <tr> 52<th>endAddr</th> 53<td>the data end address <BR>This will be converted to an appropriate address unit, according to the data format.</td> 54 </tr> 55 <tr> 56<th>currentAddr</th> 57<td>the data start address <BR>This will be converted to an appropriate address unit, according to the data format.</td> 58 </tr> 59 <tr> 60<th>adpcm</th> 61<td>Pointer to the decoding information (<code>SPAdpcmEntry</code>) that is required for ADPCM formatted data</td> 62 </tr> 63</table> 64 65<h2>Description</h2> 66<p>The <CODE>SPSoundEntry</CODE> structure denotes information regarding each SE in the sound table (<code>SPSoundTable</code>).</p> 67 68<h2>See Also</h2> 69<p class="reference"> 70<a href="SPInitSoundTable.html">SPInitSoundTable</a>, 71<a href="SPGetSoundEntry.html">SPGetSoundEntry</a>, 72<a href="SPPrepareSound.html">SPPrepareSound</a>, 73<a href="SPPrepareEnd.html">SPPrepareEnd</a>, 74<a href="SPSoundTable.html">SPSoundTable</a>, 75<a href="SPAdpcmEntry.html">SPAdpcmEntry</a> 76</p> 77 78<h2>Revision History</h2> 79<P> 802006/03/01 Initial version.<BR> 81</P> 82 83<hr><p>CONFIDENTIAL</p></body> 84</html> 85