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_SetMasterPan</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_SetMasterPan <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 &lt;nitro/snd.h&gt;</code></pre></dd>
17<dd><pre class="funcprototype"><code class="funcprototype">void SND_SetMasterPan( int <var>pan</var> );</code><br></pre></dd>
18</dl>
19<div class="refsection" lang="ja"><a name="IDA0MWT"></a>
20      <h2>Arguments</h2>
21
22      <div class="variablelist">
23<table border="0">
24<col align="left" valign="top">
25<tbody>
26<tr>
27<td><em><strong><code>pan</code></strong></em></td>
28<td>The value of the master pan. Takes values in the range of 0 (left) to 64 (center) to 127 (right).</td>
29</tr>
30</tbody>
31</table>
32</div>
33
34    </div>
35<div class="refsection" lang="ja"><a name="IDAJNWT"></a>
36      <h2>Return Values</h2>
37
38      <p>None.</p>
39    </div>
40<div class="refsection" lang="ja"><a name="IDAQNWT"></a>
41      <h2>Description</h2>
42      <p>
43Sets the master pan.
44</p>
45      <p>
46By setting the master pan, the pan setting for each channel is ignored. All sounds are set to the stereo position of <em><strong><code>pan</code></strong></em>.
47</p>
48      <p>
49Call the <tt class="function"><a href="SND_ResetMasterPan.html">SND_ResetMasterPan</a></tt> function to disable the master pan.
50</p>
51      <div class="note">
52<h3 class="title">Note</h3>
53<p>
54If this function is called while sound is being played, noise may be generated when the master pan is switched.
55</p>
56<p>
57This 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.
58</p>
59<p>
60If 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.
61</p>
62</div>
63    </div>
64<h2>See Also</h2>
65<p><code><a href="SND_ResetMasterPan.html">SND_ResetMasterPan</a>, <a href="SND_FlushCommand.html">SND_FlushCommand</a>, <a href="SND_GetCurrentCommandTag.html">SND_GetCurrentCommandTag</a>, <a href="SND_IsFinishedCommandTag.html">SND_IsFinishedCommandTag</a>, <a href="SND_WaitForCommandProc.html">SND_WaitForCommandProc</a></code></p>
66<h2>Revision History</h2>
67<p>
682005/02/17 Added a note about ARM7 command processing. <br>2004/10/05 Initial version.
69</p>
70</div>
71<hr><p>CONFIDENTIAL</p></body>
72</html>
73