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_CalcChannelVolume</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="IDAKKUT"></a><div class="titlepage"> 10<div></div> 11<div></div> 12</div> 13<h1>SND_CalcChannelVolume <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 <nitro/snd.h></code></pre></dd> 17<dd><pre class="funcprototype"><code class="funcprototype">u16 SND_CalcChannelVolume( int <var>dB</var> );</code><br></pre></dd> 18</dl> 19<div class="refsection" lang="ja"><a name="IDA5LUT"></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>dB</code></strong></em></td> 28<td>The decibel value. Each unit is 0.1 dB and acceptable values are in the range of –72.3 dB to 0.0 dB.</td> 29</tr> 30</tbody> 31</table> 32</div> 33 34 </div> 35<div class="refsection" lang="ja"><a name="IDAOMUT"></a> 36 <h2>Return Values</h2> 37 38 <p>Returns the channel volume as a 16-bit value. The lower 8 bits store the volume value, while the upper 8 bits store the data shift value.</p> 39 </div> 40<div class="refsection" lang="ja"><a name="IDAVMUT"></a> 41 <h2>Description</h2> 42 <p> 43Calculates the value for the channel volume. 44</p> 45 <p> 46This gets a volume value that can be directly handled by the <tt class="function"><a href="SND_SetChannelVolume.html">SND_SetChannelVolume</a></tt> function. A volume value in the range of 0 to 127 is inside the lower 8 bits of the returned value. The <code>SNDChannelDataShift</code> type is inside the upper 8 bits of the returned value. 47</p> 48 </div> 49<h2>See Also</h2> 50<p><a href="SND_SetChannelVolume.html"><code>SND_SetChannelVolume</code></a></p> 51<h2>Revision History</h2> 52<p> 532004/09/02 Added a description of units to <B>Arguments</B>. <br>2004/07/20 Initial version. 54</p> 55</div> 56<hr><p>CONFIDENTIAL</p></body> 57</html> 58