1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> 2<head> 3<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 4<title>SND_StartSeq</title> 5<link rel="stylesheet" href="../css/nitro.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.65.1"> 7</head> 8<body> 9<div class="refentry" lang="ja"><a name="IDAFLWT"></a><div class="titlepage"> 10<div></div> 11<div></div> 12</div> 13<h1>SND_StartSeq <IMG src="../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../image/TWL.gif" width="24" height="12" border="0" align=middle></h1> 14<h2>Syntax</h2> 15<dl> 16<dd><pre class="funcsynopsisinfo"><code>#include <nitro/snd.h></code></pre></dd> 17<dd><pre class="funcprototype"><code class="funcprototype">void SND_StartSeq( 18 int <var>playerNo</var>, 19 const void* <var>base</var>, 20 u32 <var>offset</var>, 21 const SNDBankData* <var>bank</var> );</code><br></pre></dd> 22</dl> 23<div class="refsection" lang="ja"><a name="IDAYNWT"></a> 24 <h2>Arguments</h2> 25 26 <div class="variablelist"> 27<table border="0"> 28<col align="left" valign="top"> 29<tbody> 30<tr> 31<td><em><strong><code>playerNo</code></strong></em></td> 32<td>The player number. Takes a value between 0 and 15.</td> 33</tr> 34<tr> 35<td><em><strong><code>base</code></strong></em></td> 36<td>The base address of the sequence data.</td> 37</tr> 38<tr> 39<td><em><strong><code>offset</code></strong></em></td> 40<td>The start position offset for the sequence data.</td> 41</tr> 42<tr> 43<td><em><strong><code>bank</code></strong></em></td> 44<td>This is the bank data pointer.</td> 45</tr> 46</tbody> 47</table> 48</div> 49 </div> 50<div class="refsection" lang="ja"><a name="IDA2OWT"></a> 51 <h2>Return Values</h2> 52 53 <p>None.</p> 54 </div> 55<div class="refsection" lang="ja"><a name="IDADPWT"></a> 56 <h2>Description</h2> 57 <p> 58Plays sequence. 59</p> 60 <p> 61Plays the sequence with the player of the player number <em><strong><code>playerNo</code></strong></em>. Any sequence that is already being played on that player will be forcibly stopped. 62</p> 63 <p> 64Sequence data is processed from the offset position (<code><strong><em>offset</em></strong></code>) from the base address (<code><strong><em>base</em></strong></code>). 65</p> 66 <p> 67For bank, <em><strong><code>bank</code></strong></em>, specify the bank which the sequence uses for sound generation. The <tt class="function"><a href="SND_AssignWaveArc.html">SND_AssignWaveArc</a></tt> function must be used to combine the waveform archive with the <SPAN class="argument">bank</SPAN> in advance. 68</p> 69 <p> 70Use <tt class="function"><a href="SND_PrepareSeq.html">SND_PrepareSeq</a></tt> instead of this function if you need to change the volume or other parameters at the same time that you start sequence playback. If you call the <tt class="function"><a href="SND_StartPreparedSeq.html">SND_StartPreparedSeq</a></tt> function after changing parameters, parameter changes made up to that point are guaranteed to be applied at the same time as the sequence begins playing. 71</p> 72 <div class="note"> 73<h3 class="title">Note</h3> 74<p> 75This function is an ARM7 reserved function. After this function is called, its processing will occur only after the command is issued with the <tt class="function"><a href="SND_FlushCommand.html">SND_FlushCommand</a></tt> function. 76</p> 77<p> 78If program execution must be synchronized with process completion, first use the <tt class="function"><a href="SND_GetCurrentCommandTag.html">SND_GetCurrentCommandTag</a></tt> function to obtain the command tag immediately after calling this function. Then, after the command is issued, use the command tag and call either the <tt class="function"><a href="SND_IsFinishedCommandTag.html">SND_IsFinishedCommandTag</a></tt> or <tt class="function"><a href="SND_WaitForCommandProc.html">SND_WaitForCommandProc</a></tt> function to confirm that processing has finished or to wait for it to complete. 79</p> 80</div> 81 </div> 82<h2>See Also</h2> 83<p><a href="SND_AssignWaveArc.html"><code>SND_AssignWaveArc</code></a>, <a href="SND_PrepareSeq.html"><code>SND_PrepareSeq</code></a>, <a href="SND_FlushCommand.html"><code>SND_FlushCommand</code></a>, <a href="SND_GetCurrentCommandTag.html"><code>SND_GetCurrentCommandTag</code></a>, <a href="SND_IsFinishedCommandTag.html"><code>SND_IsFinishedCommandTag</code></a>, <a href="SND_WaitForCommandProc.html"><code>SND_WaitForCommandProc</code></a></p> 84<h2>Revision History</h2> 85<p> 862005/04/14 Added a description for <code>SND_PrepareSeq</code> <br>2005/02/17 Added a note about ARM7 command execution. <br>2004/07/20 Added an explanation regarding the combination of the bank and waveform archive. <br>2004/07/01 Initial version. 87</p> 88</div> 89<hr><p>CONFIDENTIAL</p></body> 90</html> 91