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>C Specification</h2> 16 17<dl> 18 <dd> 19 <pre><CODE> 20 #include <revolution.h> 21 #include <revolution/sp.h> 22 23 void SPPrepareSound(SPSoundEntry *sound, AXVPB *axvpb, u32 sampleRate); 24 </CODE></pre> 25 </dd> 26</dl> 27 28<h2>Arguments</h2> 29 30<table border="1" cellpadding="3" cellspacing="0.1"> 31 <tr> 32<td width="120" bgcolor="#ffffe8"><em><strong><code>sound</code></strong></em></td> 33 <td width="520">pointer to an <code>SPSoundEntry</code> structure</td> 34 </tr> 35 <tr> 36 <td width="120" bgcolor="#ffffe8"><em><strong><code>axvpb</code></strong></em></td> 37 <td width="520">pointer to the <code>AXVPB</code> structure associated with an allocated AX voice</td> 38 </tr> 39 <tr> 40<td width="120" bgcolor="#ffffe8"><em><strong><code>sampleRate</code></strong></em></td> 41 <td width="520">the SE playback frequency</td> 42 </tr> 43</table> 44 45<h2>Return Values</h2> 46 47<p>None.</p> 48 49<h2>Description</h2> 50 51<p>This function initializes the AX voice specified by <code>axvpb</code>, based on the SE information (<code>sound</code>) and the playback frequency (<code>sampleRate</code>). If there is no need to convert the SE playback frequency, set the SE default playback frequency (<code>sound->sampleRate</code>) to <code>sampleRate</code>.</p> 52 53<p><STRONG>NB</STRONG>: This 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> 54 55<h2>See Also</h2> 56 57<p><code><a href="SPSoundEntry.html">SPSoundEntry</a></code></p> 58 59<h2>Revision History</h2> 60<P>2006/03/01 Initial version.</P> 61 62<hr> 63<P>CONFIDENTIAL</p> 64</BODY> 65</HTML> 66