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> 20 #include <revolution.h> 21 #include <revolution/sp.h> 22 23 typedef struct 24 { 25 u32 type; 26 u32 sampleRate; 27 u32 loopAddr; 28 u32 loopEndAddr; 29 u32 endAddr; 30 u32 currentAddr; 31 SPAdpcmEntry *adpcm; 32 33 } SPSoundEntry; 34 </CODE></pre> 35 </dd> 36</dl> 37 38<h2>Elements</h2> 39 40<table border="1" cellpadding="3" cellspacing="0.1"> 41 <tr> 42<td width="120" bgcolor="#ffffe8"><em><strong><code>type</code></strong></em></td> 43 <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> 44 </tr> 45 <tr> 46<td width="120" bgcolor="#ffffe8"><em><strong><code>sampleRate</code></strong></em></td> 47 <td width="520">the SE play frequency (in Hz)</td> 48 </tr> 49 <tr> 50 <td width="120" bgcolor="#ffffe8"><em><strong><code>loopAddr</code></strong></em></td> 51 <td width="520">the loop start address <BR>This will be converted to an appropriate address unit, according to the data format.</td> 52 </tr> 53 <tr> 54 <td width="120" bgcolor="#ffffe8"><em><strong><code>loopEndAddr</code></strong></em></td> 55 <td width="520">the loop end address <BR>This will be converted to an appropriate address unit, according to the data format.</td> 56 </tr> 57 <tr> 58 <td width="120" bgcolor="#ffffe8"><em><strong><code>endAddr</code></strong></em></td> 59 <td width="520">the data end address <BR>This will be converted to an appropriate address unit, according to the data format.</td> 60 </tr> 61 <tr> 62 <td width="120" bgcolor="#ffffe8"><em><strong><code>currentAddr</code></strong></em></td> 63 <td width="520">the data start address <BR>This will be converted to an appropriate address unit, according to the data format.</td> 64 </tr> 65 <tr> 66<td width="120" bgcolor="#ffffe8"><em><strong><code>adpcm</code></strong></em></td> 67 <td width="520">pointer to the decoding information (<code>SPAdpcmEntry</code>) that is required for ADPCM formatted data</td> 68 </tr> 69</table> 70 71<h2>Description</h2> 72 73<p>This structure contains information regarding each SE in the sound table (<code>SPSoundTable</code>).</p> 74 75<h2>See Also</h2> 76 77<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> 78 79<h2>Revision History</h2> 80<P>2006/03/01 Initial version.</P> 81 82<hr> 83<P>CONFIDENTIAL</p> 84</BODY> 85</HTML> 86