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
17<h2>C Specification</h2>
18<BLOCKQUOTE>
19<pre><code>#include &lt;revolution.h&gt;
20
21#define AX_SRC_TYPE_NONE        0  //bypass SRC
22#define AX_SRC_TYPE_LINEAR      1  //linear interpolation
23#define AX_SRC_TYPE_4TAP_8K     2  //4 tap polyphase, roll off at 8kHz
24#define AX_SRC_TYPE_4TAP_12K    3  //4 tap polyphase, roll off at 12kHz (same as N64)
25#define AX_SRC_TYPE_4TAP_16K    4  //4 tap polyphase, roll off at 16kHz
26
27void AXSetVoiceSrcType  (AXVPB *pvpb, u32 type);</CODE></pre>
28</BLOCKQUOTE>
29<h2>Arguments</h2>
30
31<table border="1" cellpadding="3" cellspacing="0.1">
32  <tr>
33<td width="120" bgcolor="#ffffe8"><em><strong><code>pvpb</code></strong></em></td>
34<td width="520">Pointer to the specified voice.</td>
35  </tr>
36  <tr>
37<td width="120" bgcolor="#ffffe8"><em><strong><code>type</code></strong></em></td>
38<td width="520">SRC type See C Specification, above, for definitions.</td>
39  </tr>
40</table>
41
42<h2>Return Values</h2>
43
44<p>None.</p>
45
46<h2>Description</h2>
47
48<p><code>AXSetVoiceSrcType()</code> sets the Sample Rate Converter (SRC) type for a given voice. This function will set both the <code>axvpb.pb.srcSelect</code> and <code>axvpb.pb.coefSelect</code> parameters, accordingly. This function also asserts the appropriate synchronization flags in <code>axvpb.sync</code>.</p>
49<h2>See Also</h2>
50
51<p>
52<code><a href="../Parameter_Blocks/srcselect.html">axvpb.pb.srcSelect</a><br> <a href="../Parameter_Blocks/coefselect.html">axvpb.pb.coefSelect</a><br> <a href="AXSetVoiceSrc.html">AXSetVoiceSrc</a><br> <a href="AXSetVoiceSrcRatio.html">AXSetVoiceSrcRatio</a></code>
53</p>
54
55<h2>Revision History</h2>
56
57<P>2006/03/01 Initial version.</P><hr>
58<P>CONFIDENTIAL</p>
59</BODY>
60</HTML>
61