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>AXSetVoiceSrcType</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">AXSetVoiceSrcType</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/ax.h&gt;
19
20#define AX_SRC_TYPE_NONE        0  //bypass SRC
21#define AX_SRC_TYPE_LINEAR      1  //linear interpolation
22#define AX_SRC_TYPE_4TAP_8K     2  //4 tap polyphase, roll off at 8kHz
23#define AX_SRC_TYPE_4TAP_12K    3  //4 tap polyphase, roll off at 12kHz (same as N64)
24#define AX_SRC_TYPE_4TAP_16K    4  //4 tap polyphase, roll off at 16kHz
25
26void AXSetVoiceSrcType  (AXVPB *pvpb, u32 type);
27</pre></dd></dl>
28
29<h2>Arguments</h2>
30<TABLE class="arguments" border="1" >
31  <tr>
32<th>pvpb</th>
33<td>Pointer to the specified voice.</td>
34  </tr>
35  <tr>
36<th>type</th>
37<td>SRC type. See Syntax, above, for definitions.</td>
38  </tr>
39</table>
40
41<h2>Return Values</h2>
42<p>None.</p>
43
44<h2>Description</h2>
45<p>The <code>AXSetVoiceSrcType</code> function sets the Sample Rate Converter (SRC) type for a given voice. Accordingly, this function will set both the <code>axvpb.pb.srcSelect</code> and <code>axvpb.pb.coefSelect</code> parameters. This function also asserts the synchronization flag corresponding to <code>axvpb.sync</code>.</p>
46
47<h2>See Also</h2>
48<p class="reference">
49<a href="../Parameter_Blocks/srcselect.html">axvpb.pb.srcSelect</a>, <a href="../Parameter_Blocks/coefselect.html">axvpb.pb.coefSelect</a>, <a href="AXSetVoiceSrc.html">AXSetVoiceSrc</a>, <a href="AXSetVoiceSrcRatio.html">AXSetVoiceSrcRatio</a>
50</p>
51
52<h2>Revision History</h2>
53<P>
542006/03/01 Initial version.<br>
55</P>
56
57<hr><p>CONFIDENTIAL</p></body>
58</html>
59