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>nw::snd::FxDelay::SetParam Member Function</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14bool SetParam(
15     const <a href="../../../nw/snd/FxDelay/Param/Overview.html">FxDelay::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>Delay parameters.</td>
33        </tr> </table>
34    </div>
35    <h2>Return Values</h2>
36    <div class="section">Returns true if settings are successful. Returns false if settings fail (value out of bounds, for instance). </div>
37    <h2>Description</h2>
38    <div class="section">
39      <p>Sets delay parameters.</p><p>The <a href="../../../nw/snd/FxDelay/GetRequiredMemSize.html">GetRequiredMemSize</a> function calculates the memory size required based on the delay parameters that have been set.</p><p>The <a href="../../../nw/snd/FxDelay/Param/Overview.html">Param</a> structure is copied inside the instance of FxDelay.</p><p>Behavior changes before and after calling <a href="../../../nw/snd/SoundSystem/AppendEffect.html">SoundSystem::AppendEffect</a> and passing an instance of <a href="../../../nw/snd/FxDelay/Overview.html">FxDelay</a>.</p><p>Before calling <a href="../../../nw/snd/SoundSystem/AppendEffect.html">SoundSystem::AppendEffect</a>, a value range check is made for the m_FeedbackGain and m_Damping members of the <a href="../../../nw/snd/FxDelay/Param/Overview.html">Param</a> structure. If values are out of range, execution stops on an assert for Debug and Development versions, while false is returned for Release versions.</p><p>After <a href="../../../nw/snd/SoundSystem/AppendEffect.html">SoundSystem::AppendEffect</a> is called, in addition to the value range check performed before the call, a check is made whether the required memory size has increased. In other words, if operations such as the following:<BR>- A value larger than when ?? was called is set for m_DelayTime<BR>- m_IsEnable is set to true even though it was set to false when <a href="../../../nw/snd/FxDelay/Initialize.html">Initialize</a> was called<BR> are performed, this function fails and returns false. If all of the conditions given above are satisfied, parameters can now be changed using <a href="../../../nw/snd/SoundSystem/AppendEffect.html">SoundSystem::AppendEffect</a>.</p></div>
40    <h2>See Also</h2>
41    <div class="section">
42      <p class="reference"><a href="../../../nw/snd/FxDelay/GetRequiredMemSize.html">GetRequiredMemSize</a><br /><a href="../../../nw/snd/FxDelay/GetParam.html">GetParam</a><br /><a href="../../../nw/snd/SoundSystem/AppendEffect.html">SoundSystem::AppendEffect</a><br /> </p>
43    </div>
44    <h2>Revision History</h2>
45    <div class="section">
46      <dl class="history">
47        <dt>2010/09/30</dt>
48        <dd>Added information on behavior before and after calling <a href="../../../nw/snd/SoundSystem/AppendEffect.html">SoundSystem::AppendEffect</a>.<br />
49        </dd>
50        <dt>2010/09/03</dt>
51        <dd>Initial version.<br />
52        </dd>
53      </dl>
54    </div>
55  <hr><p>CONFIDENTIAL</p></body>
56</html>