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>SNDChannelInfo</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="IDAKKWT"></a><div class="titlepage">
10<div></div>
11<div></div>
12</div>
13<h1>SNDChannelInfo <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>Definition</h2>
15<dl>
16<dd><pre class="funcsynopsisinfo"><code>#include &lt;nitro/snd.h&gt;</code></pre></dd>
17<dd><pre class="funcsynopsisinfo"><code>typedef struct SNDChannelInfo
18{
19    BOOL activeFlag : 1;
20    BOOL lockFlag : 1;
21
22    u16 volume;
23    u8 pan;
24    u8 pad_;
25
26    SNDEnvStatus envStatus;
27} SNDChannelInfo;
28</code></pre></dd>
29<dd><pre class="funcprototype"></pre></dd>
30</dl>
31<div class="refsection" lang="ja"><a name="IDAPLWT"></a>
32      <h2>Elements</h2>
33
34      <div class="variablelist">
35<table border="0">
36<col align="left" valign="top">
37<tbody>
38<tr>
39<td><em><strong><code>activeFlag</code></strong></em></td>
40<td>The active flag. Indicates whether the channel is currently operating.</td>
41</tr>
42<tr>
43<td><em><strong><code>lockFlag</code></strong></em></td>
44<td>The lock flag. Indicates whether the channel is currently locked.</td>
45</tr>
46</tbody>
47</table>
48</div>
49
50      <p>The following members are valid only when <em><strong><code>activeFlag</code></strong></em> is <code>TRUE</code>.</p>
51
52      <div class="variablelist">
53<table border="0">
54<col align="left" valign="top">
55<tbody>
56<tr>
57<td><em><strong><code>volume</code></strong></em></td>
58<td>The volume. Takes a value between 0 and 2032.</td>
59</tr>
60<tr>
61<td><em><strong><code>pan</code></strong></em></td>
62<td>The pan. Takes values in the range of 0 (left) to 64 (center) to 127 (right).</td>
63</tr>
64</tbody>
65</table>
66</div>
67
68      <p>The following member is valid only when <em><strong><code>activeFlag</code></strong></em> is <code>TRUE</code> and <em><strong><code>lockFlag</code></strong></em> is <code>FALSE</code>.</p>
69
70      <div class="variablelist">
71<table border="0">
72<col align="left" valign="top">
73<tbody>
74<tr>
75<td><em><strong><code>envStatus</code></strong></em></td>
76<td>The envelope status.</td>
77</tr>
78</tbody>
79</table>
80</div>
81    </div>
82<div class="refsection" lang="ja"><a name="IDAENWT"></a>
83      <h2>Description</h2>
84      <p>
85This is the channel information structure. It stores the information for a single channel.
86</p>
87      <p>
88The contents of this structure can be obtained with the <tt class="function"><a href="SND_ReadChannelInfo.html">SND_ReadChannelInfo</a></tt> function.
89</p>
90      <p>
91The envelope status <em><strong><code>envStatus</code></strong></em> takes one of the following values.
92</p>
93      <div class="table"><a name="IDAXNWT"></a><p class="title"><b><b>Table. SNDEnvStatus</b></b></p>
94<table summary="SNDEnvStatus" border="1">
95<colgroup><col><col></colgroup>
96<thead>
97<tr>
98<th>Label</th>
99<th>Description</th>
100</tr>
101</thead>
102<tbody>
103<tr>
104<td>SND_ENV_ATTACK</td>
105<td>Attack</td>
106</tr>
107<tr>
108<td>SND_ENV_DECAY</td>
109<td>Decay</td>
110</tr>
111<tr>
112<td>SND_ENV_SUSTAIN</td>
113<td>Sustain</td>
114</tr>
115<tr>
116<td>SND_ENV_RELEASE</td>
117<td>Release</td>
118</tr>
119</tbody>
120</table>
121</div>
122
123<div class="note">
124<h3 class="title">Note</h3>
125<p>
126The structure size and the member arrangement may be changed in the future.
127        </p>
128</div>
129
130
131    </div>
132<h2>See Also</h2>
133<p><a href="SND_ReadChannelInfo.html">SND_ReadChannelInfo</a></p>
134<h2>Revision History</h2>
135<p>2005/02/17 Initial version.</p>
136</div>
137<hr><p>CONFIDENTIAL</p></body>
138</html>
139