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>C Specification</H2> 16<BLOCKQUOTE> 17<PRE><CODE> 18#include <revolution.h> 19#include <revolution/axfx.h> 20 21/*----------------------------------------------* 22 For mono, stereo, surround 23 *----------------------------------------------*/ 24 25typedef struct AXFX_BUS 26{ 27 s32 *left; 28 s32 *right; 29 s32 *surround; 30 31} AXFX_BUS; 32 33typedef struct AXFX_DELAY_EXP 34{ 35 // do not touch these! 36 s32 *lineL; 37 38 (omitted) 39 40 u32 active; 41 42 // user parameters 43 f32 maxDelay; // max delay time (msec) (>0.f) 44 f32 delay; // delay time (msec) (0.f< - <=maxDelay) 45 f32 feedback; // feedback gain (0.f - <1.f) 46 f32 lpf; // LPF param (0.f - 1.f) (cutoff : low - high) 47 48 AXFX_BUS *busIn; 49 AXFX_BUS *busOut; 50 f32 outGain; 51 f32 sendGain; 52 53} AXFX_DELAY_EXP; 54 55/*----------------------------------------------* 56 For Dolby Pro Logic II 57 *----------------------------------------------*/ 58 59typedef struct AXFX_BUS_DPL2 60{ 61 s32 *L; 62 s32 *R; 63 s32 *Ls; 64 s32 *Rs; 65 66} AXFX_BUS_DPL2; 67 68typedef struct AXFX_DELAY_EXP_DPL2 69{ 70 // do not touch these! 71 s32 *line[4]; 72 73 (omitted) 74 75 u32 active; 76 77 // user parameters 78 f32 maxDelay; // max delay time (msec) (>0.f) 79 f32 delay; // delay time (msec) (0.f< - <=maxDelay) 80 f32 feedback; // feedback gain (0.f - <1.f) 81 f32 lpf; // LPF param (0.f - 1.f) (cutoff : low - high) 82 83 AXFX_BUS_DPL2 *busIn; 84 AXFX_BUS_DPL2 *busOut; 85 f32 outGain; 86 f32 sendGain; 87 88} AXFX_DELAY_EXP_DPL2; 89</CODE></PRE> 90</BLOCKQUOTE> 91 92<H2>Description</H2> 93<P>When using the Delay Expansion, you must assign appropriate values to the following 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; the <code>AXFX_DELAY_EXP_DPL2</code> structure is used with Dolby Pro Logic II.</P> 94 95<table border="1" > 96 <tbody> 97 <tr> 98 <td width="120" align="center" bgcolor="#ffffe8"><CODE><STRONG><EM>maxDelay</EM></STRONG></CODE></td> 99<td width="480">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> 100 </tr> 101 <tr> 102 <td width="120" align="center" bgcolor="#ffffe8"><CODE><STRONG><EM>delay</EM></STRONG></CODE></td> 103<td width="480">Delay time (= delay time of input audio). Specify a value as 0.0 <= <EM>value</EM> <= <CODE><STRONG><EM>maxDelay</EM></STRONG></CODE> (in msec).</td> 104 </tr> 105 <tr> 106 <td width="120" align="center" bgcolor="#ffffe8"><CODE><STRONG><EM>feedback</EM></STRONG></CODE></td> 107<td width="480">Feedback gain. Specify a value as 0.0 <= <EM>value</EM> < 1.0.</td> 108 </tr> 109 <tr> 110 <td width="120" align="center" bgcolor="#ffffe8"><CODE><STRONG><EM>lpf</EM></STRONG></CODE></td> 111<td width="480">Tunes the cut-off frequency of the low-pass filter (LPF). Specify a value as 0.0 <= <EM>value</EM> <= 1.0. The smaller the value, the lower the cut-off frequency. </td> 112 </tr> 113 <tr> 114 <td width="120" align="center" bgcolor="#ffffe8"><STRONG><CODE><EM>busIn</EM></CODE></STRONG></td> 115<td width="480">Specifies the input buffer for effect bus sends.</td> 116 </tr> 117 <tr> 118 <td width="120" align="center" bgcolor="#ffffe8"><STRONG><CODE><EM>busOut</EM></CODE></STRONG></td> 119<td width="480">Specifies the output buffer for effect bus sends.</td> 120 </tr> 121 <tr> 122 <td width="120" align="center" bgcolor="#ffffe8"><CODE><STRONG><EM>outGain</EM></STRONG></CODE></td> 123<td width="480">Output gain. Specify a value as 0.0 <= <EM>value</EM> <= 1.0.</td> 124 </tr> 125 <tr> 126 <td width="120" align="center" bgcolor="#ffffe8"><STRONG><CODE><EM>sendGain</EM></CODE></STRONG></td> 127<td width="480">Send gain to the next-level effect bus. Specify a value as 0.0 <= <EM>value</EM> <= 1.0.</td> 128 </tr> 129 </tbody> 130</table> 131 132<p><strong>Note:</strong> 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.</p> 133 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