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
17<h2>C Specification</h2>
18<BLOCKQUOTE>
19<pre><code>#include &lt;revolution.h&gt;
20
21typedef struct _AXPBVE
22{
23
24    u16 currentVolume;  //.15 volume at start of frame
25    s16 currentDelta;   //signed per-sample delta for currentVolume
26
27} AXPBVE;
28
29void AXSetVoiceVe(AXVPB *pvpb, AXPBVE *ve);</CODE></pre>
30</BLOCKQUOTE>
31<h2>Arguments</h2>
32
33<table border="1" cellpadding="3" cellspacing="0.1">
34  <tr>
35<td width="120" bgcolor="#ffffe8"><em><strong><code>pvpb</code></strong></em></td>
36<td width="520">Pointer to the specified voice.</td>
37  </tr>
38  <tr>
39<td width="120" bgcolor="#ffffe8"><em><strong><code>ve</code></strong></em></td>
40<td width="520">Pointer to structure of type <code>AXPBVE</code>. Values are initialized by the user audio application.</td>
41  </tr>
42</table>
43
44<h2>Return Values</h2>
45
46<p>None.</p>
47
48<h2>Description</h2>
49
50<p><code>AXSetVoiceVe()</code> initializes the volume envelope for a voice. If a voice is already running, use <code>AXSetVoiceVeDelta()</code> to change the volume envelope. This function also asserts the appropriate synchronization flags in <code>axvpb.sync</code>.</p>
51<h2>See Also</h2>
52
53<p>
54<code><a href="../Parameter_Blocks/AXPBVE_ve.html">axvpb.pb.ve</a><br> <a href="AXSetVoiceVeDelta.html">AXSetVoiceVeDelta</a></code>
55</p>
56
57<h2>Revision History</h2>
58
59<P>2006/03/01 Initial version.</P>
60<hr>
61<P>CONFIDENTIAL</p>
62</BODY>
63</HTML>
64