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>AXSetVoiceRmtIIRCoefs</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">AXSetVoiceRmtIIRCoefs</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/ax.h> 19 20#define AX_PB_LPF_ON 0x0001 21#define AX_PB_BIQUAD_ON 0x0002 22 23void AXSetVoiceRmtIIRCoefs(AXVPB *pvpb, u16 type, ...); 24</pre></dd></dl> 25 26<h2>Arguments</h2> 27<TABLE class="arguments" border="1" > 28 <tr> 29<TH>pvpb</TH> 30<TD>Pointer to the specified voice.</TD> 31 </tr> 32 <tr> 33<TH>type</TH> 34<TD>Specifies the IIR filter type.</TD> 35 </tr> 36 <tr> 37 <TH>...</TH> 38<TD>Specifies the filter coefficients corresponding to the filter type.</TD> 39 </tr> 40</TABLE> 41 42<h2>Return Values</h2> 43<p>None.</p> 44 45<h2>Description</h2> 46<p>The <code>AXSetVoiceRmtIIRCoefs</code> function sets new filter coefficients when IIR filters for the controller speaker are enabled. This function also asserts the synchronization flag corresponding to <code>axvpb.sync</code>.</p> 47 48<p>The <SPAN class="argument">type</SPAN> argument specifies the filter type. If LPF is used as the IIR filter type for the controller speaker, specify <code>AX_PB_LPF_ON</code> for <SPAN class="argument">type</SPAN>. If Biquad filters are used, specify <code>AX_PB_BIQUAD_ON</code>.</p> 49 50<p><strong>Note: The <code>AXSetVoiceRmtIIRCoefs</code> function cannot change the filter type.</strong></p> 51 52<p>The method of specifying filter coefficients depends on the <SPAN class="argument">type</SPAN>. If <code>AX_PB_LPF_ON</code> is specified for <SPAN class="argument">type</SPAN>:</p> 53 54<BLOCKQUOTE><pre><code> 55AXSetVoiceRmtIIRCoefs(pvpb, AX_PB_LPF_ON, a0, b0); 56</CODE></pre></BLOCKQUOTE> 57 58<p>If, on the other hand, <code>AX_PB_BIQUAD_ON</code> is specified for <code>type</code>:</p> 59 60<BLOCKQUOTE><pre><code> 61AXSetVoiceRmtIIRCoefs(pvpb, AX_PB_BIQUAD_ON, b0, b1, b2, a1, a2); 62</CODE></pre></BLOCKQUOTE> 63 64<p> To learn about filter coefficients, see the <code>axvpb.pb.lpf</code> and <code>axvpb.pb.biquad</code> pages.</p> 65 66<P>To enable/disable IIR filters, use the <code>AXSetVoiceRmtIIR</code> function.</P> 67 68<h2>See Also</h2> 69<p class="reference"> 70<a href="../Parameter_Blocks/AXPBLPF_lpf.html">axvpb.pb.lpf</a>, <a href="../Parameter_Blocks/AXPBBIQUAD_biquad.html">axvpb.pb.biquad</a>, <a href="../Parameter_Blocks/AXPBRMTIIR_rmtIIR.html">axvpb.pb.rmtIIR</a>, <a href="AXSetVoiceRmtIIR.html">AXSetVoiceRmtIIR</a> 71</p> 72 73<h2>Revision History</h2> 74<P> 752006/11/14 Initial version.<BR> 76</P> 77 78<hr><p>CONFIDENTIAL</p></body> 79</html> 80