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>SPPrepareSound</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">SPPrepareSound</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre class="construction"> 17 #include <revolution.h> 18 #include <revolution/sp.h> 19 20 void SPPrepareSound(SPSoundEntry *sound, AXVPB *axvpb, u32 sampleRate); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th>sound</th> 27<td>Pointer to the <code>SPSoundEntry</code> structure.</td> 28 </tr> 29 <tr> 30<th>axvpb</th> 31<td>Pointer to the <code>AXVPB</code> structure associated with an allocated AX voice.</td> 32 </tr> 33 <tr> 34<th>sampleRate</th> 35<td>The SE play frequency.</td> 36 </tr> 37</table> 38 39<h2>Return Values</h2> 40<p>None.</p> 41 42<h2>Description</h2> 43<p>The <code>SPPrepareSound</code> function initializes the AX voice specified by <SPAN class="argument">axvpb</SPAN>, based on the SE information, <code>sound</code>, and the playback frequency, <SPAN class="argument">sampleRate</SPAN>. If there is no need to convert the SE playback frequency, set the SE default playback frequency (<code>sound->sampleRate</code>) to <SPAN class="argument">sampleRate</SPAN>.</p> 44 45<p><strong><em>Note:</em></strong> The <code>SPPrepareSound</code> function sets only the <code>AXPBADDR</code> and <code>AXPBSRC</code> parameters for the specified AX voice. Calling this function does not start SE playback.</p> 46 47<h2>See Also</h2> 48<p class="reference"> 49<a href="SPSoundEntry.html"><CODE>SPSoundEntry</CODE></a> 50</p> 51 52<h2>Revision History</h2> 53<P> 542006/03/01 Initial version.<br> 55</P> 56 57<hr><p>CONFIDENTIAL</p></body> 58</html> 59