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>AXFX_DELAY_EXP/AXFX_DELAY_EXP_DPL2</TITLE>
7<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
8<META http-equiv="Content-Style-Type" content="text/css">
9</head>
10
11<BODY>
12
13<H1 align="left">AXFX_DELAY_EXP/AXFX_DELAY_EXP_DPL2</H1>
14
15<H2>Syntax</H2>
16<dl><dd><pre class="construction">
17#include &lt;revolution.h&gt;
18#include &lt;revolution/axfx.h&gt;
19
20/*----------------------------------------------*
21    For mono, stereo, surround
22 *----------------------------------------------*/
23
24typedef struct AXFX_BUS
25{
26    s32       *left;
27    s32       *right;
28    s32       *surround;
29
30} AXFX_BUS;
31
32typedef struct AXFX_DELAY_EXP
33{
34    // do not touch these!
35    s32       *lineL;
36
37       (omitted)
38
39    u32        active;
40
41    // user parameters
42    f32        maxDelay;  // max delay time (msec) (&gt;0.f)
43    f32        delay;     // delay time (msec) (0.f&lt; - &lt;=maxDelay)
44    f32        feedback;  // feedback gain (0.f - &lt;1.f)
45    f32        lpf;       // LPF param (0.f - 1.f) (cutoff : low - high)
46
47    AXFX_BUS  *busIn;
48    AXFX_BUS  *busOut;
49    f32        outGain;
50    f32        sendGain;
51
52} AXFX_DELAY_EXP;
53
54/*----------------------------------------------*
55    For Dolby Pro Logic II
56 *----------------------------------------------*/
57
58typedef struct AXFX_BUS_DPL2
59{
60    s32       *L;
61    s32       *R;
62    s32       *Ls;
63    s32       *Rs;
64
65} AXFX_BUS_DPL2;
66
67typedef struct AXFX_DELAY_EXP_DPL2
68{
69    // do not touch these!
70    s32       *line[4];
71
72       (omitted)
73
74    u32        active;
75
76    // user parameters
77    f32        maxDelay;  // max delay time (msec) (&gt;0.f)
78    f32        delay;     // delay time (msec) (0.f&lt; - &lt;=maxDelay)
79    f32        feedback;  // feedback gain (0.f - &lt;1.f)
80    f32        lpf;       // LPF param (0.f - 1.f) (cutoff : low - high)
81
82    AXFX_BUS_DPL2 *busIn;
83    AXFX_BUS_DPL2 *busOut;
84    f32        outGain;
85    f32        sendGain;
86
87} AXFX_DELAY_EXP_DPL2;
88</pre></dd></dl>
89
90<h2>Elements</h2>
91<TABLE class="arguments" border="1" >
92  <tr>
93<TH><CODE><STRONG><EM>maxDelay</EM></STRONG></CODE></TH>
94<TD>Length of the delay line (= maximum delay time of input audio). Specify a value greater than 0.0 (units of msec). The memory to be used for the delay line is allocated according to this value.</TD>
95  </tr>
96  <tr>
97<TH><CODE><STRONG><EM>delay</EM></STRONG></CODE></TH>
98<TD>Delay time (= delay time of input audio). Specify a value as 0.0 &lt;= <EM>value</EM> &lt;= <CODE><STRONG><EM>maxDelay</EM></STRONG></CODE> (in msec).</TD>
99  </tr>
100  <tr>
101<TH><CODE><STRONG><EM>feedback</EM></STRONG></CODE></TH>
102<TD>Feedback gain. Specify a value as 0.0 &lt;= <EM>value</EM> &lt; 1.0.</TD>
103  </tr>
104  <tr>
105<TH><CODE><STRONG><EM>lpf</EM></STRONG></CODE></TH>
106<TD>Tunes the cut-off frequency of the low-pass filter (LPF). Specify a value as 0.0 &lt;= <EM>value</EM> &lt;= 1.0. The smaller the value, the lower the cut-off frequency. </TD>
107  </tr>
108  <tr>
109<TH><STRONG><CODE><EM>busIn</EM></CODE></STRONG></TH>
110<TD>Specifies the input buffer for effect bus sends.</TD>
111  </tr>
112  <tr>
113<TH><STRONG><CODE><EM>busOut</EM></CODE></STRONG></TH>
114<TD>Specifies the output buffer for effect bus sends.</TD>
115  </tr>
116  <tr>
117<TH><CODE><STRONG><EM>outGain</EM></STRONG></CODE></TH>
118<TD>Output gain. Specify a value as 0.0 &lt;= <EM>value</EM> &lt;= 1.0.</TD>
119  </tr>
120  <tr>
121<TH><STRONG><CODE><EM>sendGain</EM></CODE></STRONG></TH>
122<TD>Send gain to the next-level effect bus. Specify a value as 0.0 &lt;= <EM>value</EM> &lt;= 1.0.</TD>
123  </tr>
124</TABLE>
125
126<H2>Description</H2>
127<P>When using Delay Expansion, you must assign appropriate values to the various parameters of the <code>AXFX_DELAY_EXP</CODE> or <CODE>AXFX_DELAY_EXP_DPL2</code> structure. Normally, the <code>AXFX_DELAY_EXP</code> structure is used; <code>AXFX_DELAY_EXP_DPL2</code> is used with Dolby Pro Logic II.</P>
128
129<p><strong>Note: With the previous version of Delay, it was necessary to configure all parameters separately for each channel; with Delay Expansion, all channels use a common set of parameters, and only these must be configured.</strong></p>
130
131<H2>See Also</H2>
132<P class="reference">
133</P>
134
135<H2>Revision History</H2>
136<P>
1372007/08/07 Initial version.<br>
138</P>
139
140<hr><p>CONFIDENTIAL</p></body>
141</HTML>
142