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_GetFirstInstDataPos</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>SND_GetFirstInstDataPos <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">SNDInstPos SND_GetFirstInstDataPos( const SNDBankData* <var>bank</var> );</code><br></pre></dd>
18</dl>
19<div class="refsection" lang="ja"><a name="IDAWLWT"></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>bank</code></strong></em></td>
28<td>This is the bank data pointer.</td>
29</tr>
30</tbody>
31</table>
32</div>
33
34    </div>
35<div class="refsection" lang="ja"><a name="IDAFMWT"></a>
36      <h2>Return Values</h2>
37
38      <p>Returns the positional information for the instrument data scan.</p>
39    </div>
40<div class="refsection" lang="ja"><a name="IDAMMWT"></a>
41      <h2>Description</h2>
42      <p>
43Gets the positional information for the instrument data scan in the bank data.
44</p>
45      <p>
46You can pass the positional information obtained to the <tt class="function"><a href="SND_GetNextInstData.html">SND_GetNextInstData</a></tt> function to get <code><a href="SNDInstData.html">SNDInstData</a></code> instrument data in order.
47</p>
48
49
50      <pre class="programlisting">
51    SNDInstPos pos = SND_GetFirstInstDataPos( bank );
52    SNDInstData inst;
53
54    while( SND_GetNextInstData( bank, &amp;inst, &amp;pos ) ) {
55        // Process to perform for the instrument
56    }
57</pre>
58    </div>
59<h2>See Also</h2>
60<p><code><a href="SND_GetNextInstData.html">SND_GetNextInstData</a></code>, <code><a href="SNDInstData.html">SNDInstData</a></code></p>
61<h2>Revision History</h2>
62<p>2005/01/20 Initial version.</p>
63</div>
64<hr><p>CONFIDENTIAL</p></body>
65</html>
66