<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CSection"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="Sound"></a>Sound</h1><divclass=CBody><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#Sound">Sound</a></td><tdclass=SDescription></td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#snd_set_channel"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">snd_set_channel</a></td><tdclass=SDescription>Sets the parameters for a sound channel.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#snd_load_wv"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">snd_load_wv</a></td><tdclass=SDescription>Loads a wavpack compressed sound.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#snd_play_at"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">snd_play_at</a></td><tdclass=SDescription>Plays a sound at a specified postition.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#snd_play"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">snd_play</a></td><tdclass=SDescription>Plays a sound.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#snd_stop"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">snd_stop</a></td><tdclass=SDescription>Stops a currenly playing sound.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#snd_set_listener_pos"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">snd_set_listener_pos</a></td><tdclass=SDescription>Sets the listener posititon.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="snd_set_channel"></a>snd_set_channel</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void snd_set_channel(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>cid,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>vol,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>pan</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the parameters for a sound channel.</p><h4class=CHeading>Arguments</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cid</td><tdclass=CDLDescription>Channel ID</td></tr><tr><tdclass=CDLEntry>vol</td><tdclass=CDLDescription>Volume for the channel. 0.0 to 1.0.</td></tr><tr><tdclass=CDLEntry>pan</td><tdclass=CDLDescription>Panning for the channel. -1.0 is all left. 0.0 is equal distribution. 1.0 is all right.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="snd_load_wv"></a>snd_load_wv</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>int snd_load_wv(</td><tdclass=PTypePrefixnowrap>const </td><tdclass=PTypenowrap>char </td><tdclass=PParameterPrefixnowrap>*</td><tdclass=PParameternowrap>filename</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Loads a wavpack compressed sound.</p><h4class=CHeading>Arguments</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>filename</td><tdclass=CDLDescription>Filename of the file to load</td></tr></table><h4class=CHeading>Returns</h4><p>The id of the loaded sound. -1 on failure.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="snd_play_at"></a>snd_play_at</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>int snd_play_at(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>cid,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>sid,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>flags,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>y</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Plays a sound at a specified postition.</p><h4class=CHeading>Arguments</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cid</td><tdclass=CDLDescription>Channel id of the channel to use.</td></tr><tr><tdclass=CDLEntry>sid</td><tdclass=CDLDescription>Sound id of the sound to play.</td></tr><tr><tdclass=CDLEntry>flags</td><tdclass=CDLDescription>TODO</td></tr><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>TODO</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>TODO</td></tr></table><h4class=CHeading>Returns</h4><p>An id to the voice. -1 on failure.</p><h4class=CHeading>See Also</h4><p><snd_play, snd_stop></p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="snd_play"></a>snd_play</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>int snd_play(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>cid,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>sid,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>flags</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Plays a sound.</p><h4class=CHeading>Arguments</h4><p>Arguments: cid - Channel id of the channel to use. sid - Sound id of the sound to play. flags - TODO</p><h4class=CHeading>Returns</h4><p>An id to the voice. -1 on failure.</p><h4class=CHeading>See Also</h4><p><snd_play_at, snd_stop></p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="snd_stop"></a>snd_stop</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void snd_stop(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>id</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Stops a currenly playing sound.</p><h4class=CHeading>Arguments</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>id</td><tdclass=CDLDescription>The ID of the voice to stop.</td></tr></table><h4class=CHeading>See Also</h4><p><snd_play, snd_play_at></p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="snd_set_listener_pos"></a>snd_set_listener_pos</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void snd_set_listener_pos(</td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>y</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the listener posititon.</p><h4class=CHeading>Arguments</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>TODO</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>TODO</td></tr></table></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void snd_set_channel(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>cid,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>vol,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>pan</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Sets the parameters for a sound channel.</div></div><divclass=CToolTipid="tt2"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>int snd_load_wv(</td><tdclass=PTypePrefixnowrap>const </td><tdclass=PTypenowrap>char </td><tdclass=PParameterPrefixnowrap>*</td><tdclass=PParameternowrap>filename</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Loads a wavpack compressed sound.</div></div><divclass=CToolTipid="tt3"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>int snd_play_at(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>cid,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>sid,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>flags,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>y</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Plays a sound at a specified postition.</div></div><divclass=CToolTipid="tt4"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>int snd_play(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>cid,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>sid,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>flags</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Plays a sound.</div></div><divclass=CToolTipid="tt5"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void snd_stop(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>id</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Stops a currenly playing sound.</div></div><divclass=CToolTipid="tt6"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void snd_set_listener_pos(</td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PTypenowrap>float </td><tdclass=PParameternowrap>y</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Sets the listener posititon.</div></div><!--END_ND_TOOLTIPS-->