1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>THPSimpleSetVolume</title>
10</head>
11
12<body>
13
14<h1>THPSimpleSetVolume</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &quot;THPSimple.h&quot;
19
20BOOL THPSimpleSetVolume(s32 vol, s32 time);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<th>vol</th>
27<td>New volume value.</td>
28  </tr>
29  <tr>
30<th><code><EM><STRONG>time</STRONG></EM></code></th>
31<td>Time to transition from the current volume to the new volume. (msec)</td>
32  </tr>
33</table>
34
35<h2>Return Values</h2>
36<p>Returns <CODE>TRUE</CODE> if successful, <CODE>FALSE</CODE> otherwise.</p>
37
38<H2>Description</H2>
39<p>The <code>THPSimpleSetVolume</code> function sets the THP audio data's playback volume.
40</p>
41
42<p>The simple player changes the volume of the THP audio player from the present volume to the volume specified by <SPAN class="argument">vol</SPAN> taking the amount of time specified by <SPAN class="argument">time</SPAN>. Values from 0 through 127 can be specified for <SPAN class="argument">vol</SPAN>. <SPAN class="argument">time</SPAN> is specified in milliseconds in the range from 0 to 60,000.</p>
43
44<p>Note that when the <a href="THPSimpleOpen.html"><code>THPSimpleOpen</code></a> function is called, the volume value is initialized to 127.</p>
45
46<H2>See Also</H2>
47<P class="reference">
48<a href="THPSimpleOpen.html">THPSimpleOpen</a>
49</P>
50
51<H2>Revision History</H2>
52<P>
532006/03/01 Initial version.<br>
54</P>
55
56<hr><p>CONFIDENTIAL</p></body>
57</html>