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_SetOutputSelector</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_SetOutputSelector <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_SetOutputSelector(
18        SNDOutput <var>left</var>,
19        SNDOutput <var>right</var>,
20        SNDChannelOut <var>channel1</var>,
21        SNDChannelOut <var>channel3</var> );</code><br></pre></dd>
22</dl>
23<div class="refsection" lang="ja"><a name="IDAPNWT"></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>left</code></strong></em></td>
32<td>The left output selector.</td>
33</tr>
34<tr>
35<td><em><strong><code>right</code></strong></em></td>
36<td>The right output selector.</td>
37</tr>
38<tr>
39<td><em><strong><code>channel1</code></strong></em></td>
40<td>The channel 1 output selector.</td>
41</tr>
42<tr>
43<td><em><strong><code>channel3</code></strong></em></td>
44<td>The channel 3 output selector.</td>
45</tr>
46</tbody>
47</table>
48</div>
49
50    </div>
51<div class="refsection" lang="ja"><a name="IDATOWT"></a>
52      <h2>Return Values</h2>
53
54      <p>None.</p>
55    </div>
56<div class="refsection" lang="ja"><a name="IDA0OWT"></a>
57      <h2>Description</h2>
58      <p>
59Changes the output selector.
60</p>
61      <p>
62Choose from among the following values for the left output selector <code>left</code> and the right output selector <code>right</code>.
63</p>
64
65      <div class="table"><a name="IDAHPWT"></a><p class="title"><b><b>Table. SNDOutput</b></b></p>
66<table summary="SNDOutput" border="1">
67<colgroup><col><col></colgroup>
68<thead>
69<tr>
70<th>Label</th>
71<th>Description</th>
72</tr>
73</thead>
74<tbody>
75<tr>
76<td>SND_OUTPUT_MIXER</td>
77<td>Output LR mixer output at final stage.</td>
78</tr>
79<tr>
80<td>SND_OUTPUT_CHANNEL1</td>
81<td>Output the channel 1 output at final stage.</td>
82</tr>
83<tr>
84<td>SND_OUTPUT_CHANNEL3</td>
85<td>Output the channel 3 output at final stage.</td>
86</tr>
87<tr>
88<td>SND_OUTPUT_CHANNEL1_3</td>
89<td>Output channel 1 + channel 3 output at final stage.</td>
90</tr>
91</tbody>
92</table>
93</div>
94
95      <p>
96Choose from among the following values for the channel 1 selector <code>channel1</code> and the channel 3 selector <code>channel3</code>.
97</p>
98
99      <div class="table"><a name="IDADRWT"></a><p class="title"><b><b>Table. SNDChannelOut</b></b></p>
100<table summary="SNDChannelOut" border="1">
101<colgroup><col><col></colgroup>
102<thead>
103<tr>
104<th>Label</th>
105<th>Description</th>
106</tr>
107</thead>
108<tbody>
109<tr>
110<td>SND_CHANNEL_OUT_MIXER</td>
111<td>Send channel 1 output or channel 3 output to the mixer. (It is also sent to the bypass.)</td>
112</tr>
113<tr>
114<td>SND_CHANNEL_OUT_BYPASS</td>
115<td>Have the channel 1 output or channel 3 output bypass the mixer. (It is not sent to the mixer.)</td>
116</tr>
117</tbody>
118</table>
119</div>
120
121      <p>
122In the initial settings, <code>left</code> and <code>right</code> are set to <code>SND_OUTPUT_MIXER</code>, and <code>channel1</code> and <code>channel3</code> are set to <code>SND_CHANNEL_OUT_MIXER</code>.
123</p>
124
125      <div class="note">
126<h3 class="title">Note</h3>
127<p>
128This 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.
129</p>
130<p>
131If 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.
132</p>
133</div>
134    </div>
135<h2>See Also</h2>
136<p><code><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>
137<h2>Revision History</h2>
138<p>
1392005/06/13 Made changes following revisions to the <I>NITRO Programming Manual</I>. <br>2005/02/17 Added a note on ARM7 command processing. <br>2005/07/20 Initial version.
140</p>
141</div>
142<hr><p>CONFIDENTIAL</p></body>
143</html>
144