1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
6<title>AXSetVoiceVe</title>
7<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
8<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
9<META http-equiv="Content-Style-Type" content="text/css">
10</head>
11
12<body>
13
14<h1 align="left">AXSetVoiceVe</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/ax.h&gt;
19
20typedef struct _AXPBVE
21{
22
23    u16 currentVolume;  //.15 volume at start of frame
24    s16 currentDelta;   //signed per-sample delta for currentVolume
25
26} AXPBVE;
27
28void AXSetVoiceVe(AXVPB *pvpb, AXPBVE *ve);
29</pre></dd></dl>
30
31<h2>Arguments</h2>
32<TABLE class="arguments" border="1" >
33  <tr>
34<th>pvpb</th>
35<td>Pointer to the specified voice.</td>
36  </tr>
37  <tr>
38<th>ve</th>
39<td>Pointer to structure of type <code>AXPBVE</code>. Values are initialized by the user audio application.</td>
40  </tr>
41</table>
42
43<h2>Return Values</h2>
44<p>None.</p>
45
46<h2>Description</h2>
47<p>The <code>AXSetVoiceVe</code> function initializes the volume envelope for a voice. If a voice is already running, use the <code>AXSetVoiceVeDelta</code> function to change the volume envelope. This function also asserts the synchronization flag corresponding to <code>axvpb.sync</code>.</p>
48
49<h2>See Also</h2>
50<p class="reference">
51<a href="../Parameter_Blocks/AXPBVE_ve.html">axvpb.pb.ve</a>, <a href="AXSetVoiceVeDelta.html">AXSetVoiceVeDelta</a>
52</p>
53
54<h2>Revision History</h2>
55<P>
562006/03/01 Initial version.<br>
57</P>
58
59<hr><p>CONFIDENTIAL</p></body>
60</html>
61