1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" />
7<title>SetParam</title>
8  </head>
9  <body>
10<h1>nn::snd::CTR::FxReverb::SetParam Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14bool SetParam(
15     const <a href="../../../../nn/snd/CTR/FxReverb/Param/Overview.html">Param</a> & param
16);
17</pre>
18    </div>
19<h2>Arguments</h2>
20    <div class="section">
21      <table class="arguments">
22        <thead>
23          <tr>
24            <td width="15" />
25<th>Name</th>
26<td>Description</td>
27          </tr>
28        </thead>
29        <tr>
30<td>in</td>
31<th>param</th>
32<td>The reverb parameter.</td>
33        </tr> </table>
34    </div>
35<h2>Return Values</h2>
36<div class="section">Returns <CODE>true</CODE> when configuration succeeded and <CODE>false</CODE> when it failed (when an out-of-range value was configured, etc.). </div>
37<h2>Description</h2>
38    <div class="section">
39<p>Configures the reverb parameters.</p><p>The <CODE><a href="../../../../nn/snd/CTR/FxDelay/GetRequiredMemSize.html">GetRequiredMemSize</a></CODE> function calculates the required memory sized based on the reverb parameters configured here.</p><p>The configured <CODE><A>Param</A></CODE> structure, is copied internally.</p><p>The behavior differs when calling <CODE><A>SetEffect</A></CODE> before and after passing the <CODE><A>FxReverb</A></CODE> instance.</p><p>Before calling the <CODE><A>SetEffect</A></CODE> function, range checks are performed on <CODE>m_Coloration</CODE>, <CODE>m_Damping</CODE>, <CODE>m_EarlyGain</CODE>, and <CODE>m_FusedGain</CODE> within the <CODE><A>Param</A></CODE> structure. When out of range, you halt on an assert in the debug/development versions, and <CODE>false</CODE> is returned in the release version.</p><p>After calling the <CODE><A>SetEffect</A></CODE> function, a check is performed for whether additional memory is needed, in addition to the range check performed before calling. In other words, if a larger value is configured for <CODE>m_EarlyReflection</CODE> then was configured when the <a href="../../../../nn/snd/CTR/SetEffect.html"><CODE>SetEffect</CODE></a> function was called, or if a larger value is configured for <CODE>m_PreDelay</CODE> than was configured when the <a href="../../../../nn/snd/CTR/SetEffect.html"><CODE>SetEffect</CODE></a> function was called, or if larger values are configured for the members of <CODE>m_pFilterSize</CODE> than were configured when the <a href="../../../../nn/snd/CTR/SetEffect.html"><CODE>SetEffect</CODE></a> function was called, then this function fails and returns <CODE>false</CODE>. If the above conditions are not met, subsequent parameter changes can be made with the <CODE><A>SetEffect</A></CODE> function.</p><!-- write here --></div>
40<h2>See Also</h2>
41    <div class="section">
42<p class="reference"><a href="../../../../nn/snd/CTR/FxReverb/GetRequiredMemSize.html">GetRequiredMemSize</a><br /><a href="../../../../nn/snd/CTR/FxReverb/GetParam.html">GetParam</a><br /> </p>
43    </div>
44<h2>Revision History</h2>
45    <div class="section">
46      <dl class="history">
47        <dt>2010/11/10</dt>
48<dd>Initial version.<br />
49        </dd>
50      </dl>
51    </div>
52  <hr><p>CONFIDENTIAL</p></body>
53</html>