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
17<h2>C Specification</h2>
18<BLOCKQUOTE>
19<pre><CODE>typedef struct _AXPBSRC
20{
21
22    u16 ratioHi;            // sampling ratio, integer
23    u16 ratioLo;            // sampling ratio, fraction
24    u16 currentAddressFrac; // current fractional sample position
25    u16 last_samples[4];    // last 4 input samples
26
27} AXPBSRC;</CODE></pre>
28</BLOCKQUOTE>
29<h2>Description</h2>
30
31<p>The <CODE>SRC</CODE> values specify the operating parameters for the DSP's &quot;front-end&quot; sample rate converter.</p>
32
33<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 <code>ratioHi</code> variable must be programmed with the integer portion of the ratio. The <code>ratioLo</code> variable must be programmed with the fractional portion of the ratio (2^<sup>16</sup> * fraction).</p>
34
35<p>The <code>currentAddressFrac</code> and <code>last_samples[]</code> 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<code> last_samples[]</code> must be set to zero.</p>
36
37<p>Assert the <code>AX_SYNC_USER_SRCRATIO</code> bit in the <code>axvpb.sync</code> member when <code>ratio*</code> is changed.</p>
38
39<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>
40
41<h2>See Also</h2>
42<p>
43<code><a href="../Voice_Parameter_Blocks/sync.html">axvpb.sync</a><br> <a href="../Voice_Parameters/AXSetVoiceSrcType.html">AXSetVoiceSrc</a><br> <a href="../Voice_Parameters/AXSetVoiceSrcRatio.html">AXSetVoiceSrcRatio</a></code>
44</p>
45
46<h2>Revision History</h2>
47
48<P>2006/03/01 Initial version.</P>
49<hr>
50<P>CONFIDENTIAL</p>
51</BODY>
52</HTML>
53