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>axvpb.pb.src</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">axvpb.pb.src</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18typedef struct _AXPBSRC
19{
20
21    u16 ratioHi;            // sampling ratio, integer
22    u16 ratioLo;            // sampling ratio, fraction
23    u16 currentAddressFrac; // current fractional sample position
24    u16 last_samples[4];    // last 4 input samples
25
26} AXPBSRC;
27</pre></dd></dl>
28
29<h2>Description</h2>
30<p>The <SPAN class="argument">src</SPAN> values specify the operating parameters for the DSP's &quot;front-end&quot; sample rate converter.</p>
31
32<p>Two 16-bit values specify the input-to-output ratio of samples the DSP must generate. The valid range is 1/512 to 4.0000. The <SPAN class="argument">ratioHi</SPAN> variable must be programmed with the integer portion of the ratio. The <SPAN class="argument">ratioLo</SPAN> variable must be programmed with the fractional portion of the ratio (2^<sup>16</sup> * fraction).</p>
33
34<p>The <SPAN class="argument">currentAddressFrac</SPAN> and <SPAN class="argument">last_samples[ ]</SPAN> variables are reserved for use by the DSP and must not be modified by the user, except when setting a voice to run. In this case, the <SPAN class="argument">last_samples[ ]</SPAN> variable must be set to zero.</p>
35
36<p>Assert the <code>AX_SYNC_USER_SRCRATIO</code> bit in the <code>axvpb.sync</code> member when <SPAN class="argument">ratio*</SPAN> is changed.</p>
37
38<p>Assert the <code>AX_SYNC_USER_SRC</code> bit in the <code>axvpb.sync</code> member to synchronize the entire <code>AXPBSRC</code> structure.</p>
39
40<h2>See Also</h2>
41<p class="reference">
42<a href="../Voice_Parameter_Blocks/sync.html">axvpb.sync</a>, <a href="../Voice_Parameters/AXSetVoiceSrc.html">AXSetVoiceSrc</a>, <a href="../Voice_Parameters/AXSetVoiceSrcRatio.html">AXSetVoiceSrcRatio</a>
43</p>
44
45<h2>Revision History</h2>
46<P>
472007/10/02 Revised the link for <CODE>AXSetVoiceSrc</CODE> in the See Also section.<br>2006/03/01 Initial version.<BR>
48</P>
49
50<hr><p>CONFIDENTIAL</p></body>
51</html>
52