aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03414.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03414.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a03414.html1049
1 files changed, 1049 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03414.html b/docs/doxygen/nel/a03414.html
new file mode 100644
index 00000000..ca3f9975
--- /dev/null
+++ b/docs/doxygen/nel/a03414.html
@@ -0,0 +1,1049 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NLSOUND::CSoundAnimManager class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLSOUND::CSoundAnimManager Class Reference</h1><code>#include &lt;<a class="el" href="a06409.html">sound_anim_manager.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+The set of players.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06409.html#l00076">76</a> of file <a class="el" href="a06409.html">sound_anim_manager.h</a>.<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a05381.html#a54">TSoundAnimId</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera0">createAnimation</a> (std::string &amp;name)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera1">CSoundAnimManager</a> (<a class="el" href="a02236.html">UAudioMixer</a> *mixer)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03413.html">CSoundAnimation</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera2">findAnimation</a> (std::string &amp;name)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a05381.html#a54">TSoundAnimId</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera3">getAnimationFromName</a> (std::string &amp;name)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera4">idToName</a> (<a class="el" href="a05381.html#a54">TSoundAnimId</a> <a class="el" href="a04223.html#a564">id</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera5">isPlaying</a> (<a class="el" href="a05381.html#a56">TSoundAnimPlayId</a> playbackId)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a05381.html#a54">TSoundAnimId</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera6">loadAnimation</a> (std::string &amp;name)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera7">playAnimation</a> (<a class="el" href="a05381.html#a54">TSoundAnimId</a> <a class="el" href="a04223.html#a564">id</a>, float lastTime, float curTime, <a class="el" href="a02362.html">NL3D::CCluster</a> *cluster, <a class="el" href="a03417.html">CSoundContext</a> &amp;context)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a05381.html#a56">TSoundAnimPlayId</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera8">playAnimation</a> (std::string &amp;name, float time, <a class="el" href="a02362.html">NL3D::CCluster</a> *cluster, <a class="el" href="a03417.html">CSoundContext</a> &amp;context)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a05381.html#a56">TSoundAnimPlayId</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera9">playAnimation</a> (<a class="el" href="a05381.html#a54">TSoundAnimId</a> <a class="el" href="a04223.html#a564">id</a>, float time, <a class="el" href="a02362.html">NL3D::CCluster</a> *cluster, <a class="el" href="a03417.html">CSoundContext</a> &amp;context)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera10">saveAnimation</a> (<a class="el" href="a03413.html">CSoundAnimation</a> *anim, std::string &amp;filname)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera11">stopAnimation</a> (<a class="el" href="a05381.html#a56">TSoundAnimPlayId</a> playbackId)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera12">update</a> (float lastTime, float curTime)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagera13">~CSoundAnimManager</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03414.html">CSoundAnimManager</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagere0">instance</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagere1">release</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05381.html#a58">TSoundAnimVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">_Animations</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05381.html#a57">TSoundAnimMap</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02236.html">UAudioMixer</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp2">_Mixer</a></td></tr>
+
+<tr><td colspan=2><br><h2>Static Protected Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03414.html">CSoundAnimManager</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagert0">_Instance</a> = 0</td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera1" doxytag="NLSOUND::CSoundAnimManager::CSoundAnimManager" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLSOUND::CSoundAnimManager::CSoundAnimManager </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02236.html">UAudioMixer</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>mixer</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00044">44</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+<div class="fragment"><pre>00044 : <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp2">_Mixer</a>(mixer)
+00045 {
+00046 <span class="keywordflow">if</span> (<a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagert0">_Instance</a> != 0)
+00047 {
+00048 <span class="keywordflow">throw</span> <a class="code" href="a02482.html">Exception</a>(<span class="stringliteral">"Duplicate instanciation of CSoundAnimManager singleton"</span>);
+00049 }
+00050
+00051 <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagert0">_Instance</a> = <span class="keyword">this</span>;
+00052 <span class="comment">//_PlayerId = 0;</span>
+00053 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera13" doxytag="NLSOUND::CSoundAnimManager::~CSoundAnimManager" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLSOUND::CSoundAnimManager::~<a class="el" href="a03414.html">CSoundAnimManager</a> </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00057">57</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+<div class="fragment"><pre>00058 {
+00059 <span class="keywordflow">if</span> (<a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagert0">_Instance</a> == NULL)
+00060 <span class="keywordflow">return</span>;
+00061 <span class="comment">/*</span>
+00062 <span class="comment"> set&lt;CSoundAnimPlayer*&gt;::iterator iter;</span>
+00063 <span class="comment"></span>
+00064 <span class="comment"> for (iter = _Players.begin(); iter != _Players.end(); iter++)</span>
+00065 <span class="comment"> {</span>
+00066 <span class="comment"> CSoundAnimPlayer* player = *iter; </span>
+00067 <span class="comment"> delete player;</span>
+00068 <span class="comment"> }</span>
+00069 <span class="comment"></span>
+00070 <span class="comment"> _Players.clear();</span>
+00071 <span class="comment"> */</span>
+00072
+00073 <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagert0">_Instance</a> = NULL;
+00074 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera0" doxytag="NLSOUND::CSoundAnimManager::createAnimation" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05381.html#a54">TSoundAnimId</a> NLSOUND::CSoundAnimManager::createAnimation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Create a new sound animation with the specified name. Returns <a class="el" href="a03413.html#NLSOUND_1_1CSoundAnimationw0NLSOUND_1_1CSoundAnimationw1">CSoundAnimation::NoId</a> if the creation fails (duplicate name). <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>name</em>&nbsp;</td><td>The name of the animation to load.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00120">120</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06409.html#l00060">NLSOUND::CSoundAnimationNoId</a>, <a class="el" href="a06413.html#l00072">NLSOUND::CSoundAnimation::getName()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, and <a class="el" href="a06409.html#l00058">NLSOUND::TSoundAnimId</a>.
+<p>
+Referenced by <a class="el" href="a06408.html#l00078">loadAnimation()</a>.
+<p>
+<div class="fragment"><pre>00121 {
+00122 NL_ALLOC_CONTEXT(NLSOUND_CSoundAnimManager);
+00123 <a class="code" href="a04199.html#a6">nlassert</a>(!name.empty());
+00124
+00125 <span class="comment">// create and insert animations</span>
+00126 <a class="code" href="a05381.html#a54">TSoundAnimId</a> <span class="keywordtype">id</span> = <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">_Animations</a>.size();
+00127 <a class="code" href="a03413.html">CSoundAnimation</a>* anim = <span class="keyword">new</span> <a class="code" href="a03413.html">CSoundAnimation</a>(name, <span class="keywordtype">id</span>);
+00128 <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">_Animations</a>.push_back(anim);
+00129
+00130 <span class="comment">// insert the name and id in the id table</span>
+00131 pair&lt;TSoundAnimMap::iterator, bool&gt; inserted;
+00132 inserted =<a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a>.insert(make_pair(anim-&gt;<a class="code" href="a03413.html#NLSOUND_1_1CSoundAnimationa5">getName</a>().c_str(), <span class="keywordtype">id</span>));
+00133 <span class="keywordflow">if</span> (!inserted.second)
+00134 {
+00135 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"Duplicate sound animation \"%s\""</span>, name.c_str());
+00136 <span class="keyword">delete</span> anim;
+00137 <span class="keywordflow">return</span> <a class="code" href="a05381.html#a55">CSoundAnimationNoId</a>;
+00138 }
+00139
+00140 <span class="keywordflow">return</span> <span class="keywordtype">id</span>;
+00141 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera2" doxytag="NLSOUND::CSoundAnimManager::findAnimation" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03413.html">CSoundAnimation</a> * NLSOUND::CSoundAnimManager::findAnimation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Returns the animation corresponding to a name. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>name</em>&nbsp;</td><td>The name of the animation to load.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00145">145</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+<div class="fragment"><pre>00146 {
+00147 TSoundAnimMap::iterator iter = <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a>.find(name.c_str());
+00148 <span class="keywordflow">return</span> (iter == <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a>.end())? 0 : <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">_Animations</a>[(*iter).second];
+00149 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera3" doxytag="NLSOUND::CSoundAnimManager::getAnimationFromName" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05381.html#a54">TSoundAnimId</a> NLSOUND::CSoundAnimManager::getAnimationFromName </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Start playing a sound animation. Returns true is the animation was found and is playing. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>name</em>&nbsp;</td><td>The name of the animation to load.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00153">153</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06409.html#l00060">NLSOUND::CSoundAnimationNoId</a>, and <a class="el" href="a06409.html#l00058">NLSOUND::TSoundAnimId</a>.
+<p>
+<div class="fragment"><pre>00154 {
+00155 TSoundAnimMap::iterator iter = <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a>.find(name.c_str());
+00156 <span class="keywordflow">return</span> (iter == <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a>.end())? <a class="code" href="a05381.html#a55">CSoundAnimationNoId</a> : (*iter).second;
+00157 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera4" doxytag="NLSOUND::CSoundAnimManager::idToName" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::string NLSOUND::CSoundAnimManager::idToName </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a05381.html#a54">TSoundAnimId</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>id</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Convert back from an anim ID to the anim name.
+<p>
+Definition at line <a class="el" href="a06408.html#l00206">206</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06409.html#l00058">NLSOUND::TSoundAnimId</a>.
+<p>
+<div class="fragment"><pre>00207 {
+00208 <span class="keyword">static</span> string empty;
+00209 TSoundAnimMap::iterator it(std::find_if(<a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a>.begin(), <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a>.end(), <a class="code" href="a03903.html">TFindId</a>(<span class="keywordtype">id</span>)));
+00210
+00211 <span class="keywordflow">if</span> (it != <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">_IdMap</a>.end())
+00212 <span class="keywordflow">return</span> it-&gt;first;
+00213 <span class="keywordflow">else</span>
+00214 <span class="keywordflow">return</span> empty;
+00215 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagere0" doxytag="NLSOUND::CSoundAnimManager::instance" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03414.html">CSoundAnimManager</a>* NLSOUND::CSoundAnimManager::instance </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, static]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06409.html#l00080">80</a> of file <a class="el" href="a06409.html">sound_anim_manager.h</a>.
+<p>
+<div class="fragment"><pre>00080 { <span class="keywordflow">return</span> <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagert0">_Instance</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera5" doxytag="NLSOUND::CSoundAnimManager::isPlaying" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool NLSOUND::CSoundAnimManager::isPlaying </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a05381.html#a56">TSoundAnimPlayId</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>playbackId</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Returns true is the animation with the specified playback ID is playing <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>name</em>&nbsp;</td><td>The playback id that was returned by playAnimation.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00273">273</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06409.html#l00063">NLSOUND::TSoundAnimPlayId</a>.
+<p>
+<div class="fragment"><pre>00274 {
+00275 <span class="comment">/*nlassert(playbackId &gt;= 0);</span>
+00276 <span class="comment"></span>
+00277 <span class="comment"> set&lt;CSoundAnimPlayer*&gt;::iterator iter;</span>
+00278 <span class="comment"></span>
+00279 <span class="comment"> for (iter = _Players.begin(); iter != _Players.end(); )</span>
+00280 <span class="comment"> {</span>
+00281 <span class="comment"> CSoundAnimPlayer* player = *iter; </span>
+00282 <span class="comment"> if (player-&gt;getId() == playbackId)</span>
+00283 <span class="comment"> {</span>
+00284 <span class="comment"> return player-&gt;isPlaying();</span>
+00285 <span class="comment"> }</span>
+00286 <span class="comment"> }*/</span>
+00287
+00288 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00289 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera6" doxytag="NLSOUND::CSoundAnimManager::loadAnimation" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05381.html#a54">TSoundAnimId</a> NLSOUND::CSoundAnimManager::loadAnimation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Load the sound animation with the specified name. Returns the id of the new animation, or CSoundAnimationNoId is the file could not be found. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>name</em>&nbsp;</td><td>The name of the animation to load.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00078">78</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06408.html#l00120">createAnimation()</a>, <a class="el" href="a06409.html#l00060">NLSOUND::CSoundAnimationNoId</a>, <a class="el" href="a06412.html#l00159">NLSOUND::CSoundAnimation::load()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06413.html#l00086">NLSOUND::CSoundAnimation::setFilename()</a>, and <a class="el" href="a06409.html#l00058">NLSOUND::TSoundAnimId</a>.
+<p>
+<div class="fragment"><pre>00079 {
+00080 <a class="code" href="a04199.html#a6">nlassert</a>(!name.empty());
+00081
+00082 string <a class="code" href="a05377.html#a2">filename</a>;
+00083 <span class="keywordflow">if</span> (name.find(<span class="stringliteral">".anim"</span>) != name.npos)
+00084 {
+00085 <a class="code" href="a05377.html#a2">filename</a> = CFile::getFilenameWithoutExtension(name);
+00086 <a class="code" href="a05377.html#a2">filename</a>.append(<span class="stringliteral">".sound_anim"</span>);
+00087 }
+00088 <span class="keywordflow">else</span>
+00089 {
+00090 <a class="code" href="a05377.html#a2">filename</a> = name;
+00091 <a class="code" href="a05377.html#a2">filename</a>.append(<span class="stringliteral">".sound_anim"</span>);
+00092 }
+00093
+00094 <span class="comment">// throws exception if file not found</span>
+00095 <a class="code" href="a05377.html#a2">filename</a> = CPath::lookup(filename, <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">true</span>);
+00096 <span class="keywordflow">if</span> (<a class="code" href="a05377.html#a2">filename</a>.empty())
+00097 {
+00098 <span class="keywordflow">return</span> <a class="code" href="a05381.html#a55">CSoundAnimationNoId</a>;
+00099 }
+00100
+00101 <a class="code" href="a05381.html#a54">TSoundAnimId</a> <span class="keywordtype">id</span> = <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagera0">createAnimation</a>(name);
+00102 <span class="keywordflow">if</span> (<span class="keywordtype">id</span> == <a class="code" href="a05381.html#a55">CSoundAnimationNoId</a>)
+00103 {
+00104 <span class="keywordflow">return</span> <a class="code" href="a05381.html#a55">CSoundAnimationNoId</a>;
+00105 }
+00106
+00107 <a class="code" href="a03413.html">CSoundAnimation</a>* anim = <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">_Animations</a>[<span class="keywordtype">id</span>];
+00108
+00109 <span class="keywordflow">if</span> (anim == NULL)
+00110 <span class="keywordflow">return</span> <a class="code" href="a05381.html#a55">CSoundAnimationNoId</a>;
+00111
+00112 anim-&gt;<a class="code" href="a03413.html#NLSOUND_1_1CSoundAnimationa12">setFilename</a>(filename);
+00113 anim-&gt;<a class="code" href="a03413.html#NLSOUND_1_1CSoundAnimationa7">load</a>();
+00114
+00115 <span class="keywordflow">return</span> <span class="keywordtype">id</span>;
+00116 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera7" doxytag="NLSOUND::CSoundAnimManager::playAnimation" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLSOUND::CSoundAnimManager::playAnimation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a05381.html#a54">TSoundAnimId</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>id</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>lastTime</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>curTime</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02362.html">NL3D::CCluster</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>cluster</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a03417.html">CSoundContext</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>context</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Play all the events of an animation in the interval between lastTime and curTime. Both lastTime and curTime are measured relatively from the beginning of the animation.
+<p>
+Definition at line <a class="el" href="a06408.html#l00218">218</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06409.html#l00157">_Mixer</a>, <a class="el" href="a06409.html#l00060">NLSOUND::CSoundAnimationNoId</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06412.html#l00142">NLSOUND::CSoundAnimation::play()</a>, <a class="el" href="a06409.html#l00058">NLSOUND::TSoundAnimId</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00219 {
+00220 <span class="comment">//nlassert(id != CSoundAnimationNoId);</span>
+00221 <span class="keywordflow">if</span> (<span class="keywordtype">id</span> == <a class="code" href="a05381.html#a55">CSoundAnimationNoId</a>)
+00222 {
+00223 <span class="keywordflow">return</span>;
+00224 }
+00225
+00226 <span class="keywordflow">if</span> ((<a class="code" href="a04558.html#a11">uint32</a>) <span class="keywordtype">id</span> &gt;= <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">_Animations</a>.size())
+00227 <span class="keywordflow">return</span>;
+00228 <a class="code" href="a04199.html#a6">nlassert</a>((<a class="code" href="a04558.html#a11">uint32</a>) <span class="keywordtype">id</span> &lt; <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">_Animations</a>.size());
+00229
+00230 <a class="code" href="a03413.html">CSoundAnimation</a>* anim = <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">_Animations</a>[<span class="keywordtype">id</span>];
+00231 <a class="code" href="a04199.html#a6">nlassert</a>(anim);
+00232
+00233 anim-&gt;<a class="code" href="a03413.html#NLSOUND_1_1CSoundAnimationa8">play</a>(_Mixer, lastTime, curTime, cluster, context);
+00234 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera8" doxytag="NLSOUND::CSoundAnimManager::playAnimation" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05381.html#a56">TSoundAnimPlayId</a> NLSOUND::CSoundAnimManager::playAnimation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>name</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>time</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02362.html">NL3D::CCluster</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>cluster</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a03417.html">CSoundContext</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>context</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Start playing a sound animation. Returns an id number of this playback instance or -1 if the animation was not found. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>name</em>&nbsp;</td><td>The name of the animation to play.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00244">244</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06409.html#l00063">NLSOUND::TSoundAnimPlayId</a>.
+<p>
+<div class="fragment"><pre>00245 {
+00246 <span class="comment">/* nlassert(position);</span>
+00247 <span class="comment"></span>
+00248 <span class="comment"> TSoundAnimId id = getAnimationFromName(name);</span>
+00249 <span class="comment"> return (id == CSoundAnimation::NoId)? -1 : _PlayerId;*/</span>
+00250 <span class="keywordflow">return</span> 0;
+00251 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera9" doxytag="NLSOUND::CSoundAnimManager::playAnimation" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05381.html#a56">TSoundAnimPlayId</a> NLSOUND::CSoundAnimManager::playAnimation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a05381.html#a54">TSoundAnimId</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>id</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>time</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02362.html">NL3D::CCluster</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>cluster</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a03417.html">CSoundContext</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>context</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Start playing a sound animation. Returns an id number of this playback instance or -1 if the animation was not found. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>name</em>&nbsp;</td><td>The id of the animation to play.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00238">238</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06409.html#l00058">NLSOUND::TSoundAnimId</a>, and <a class="el" href="a06409.html#l00063">NLSOUND::TSoundAnimPlayId</a>.
+<p>
+<div class="fragment"><pre>00239 {
+00240 <span class="keywordflow">return</span> 0;
+00241 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagere1" doxytag="NLSOUND::CSoundAnimManager::release" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLSOUND::CSoundAnimManager::release </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">void&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, static]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06409.html#l00081">81</a> of file <a class="el" href="a06409.html">sound_anim_manager.h</a>.
+<p>
+<div class="fragment"><pre>00081 { <span class="keyword">delete</span> <a class="code" href="a03414.html#NLSOUND_1_1CSoundAnimManagert0">_Instance</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera10" doxytag="NLSOUND::CSoundAnimManager::saveAnimation" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLSOUND::CSoundAnimManager::saveAnimation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03413.html">CSoundAnimation</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>anim</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>filname</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Save the sound animation in the specified file. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>filename</em>&nbsp;</td><td>The name of the file to save the animation in.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00161">161</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06412.html#l00081">NLSOUND::CSoundAnimation::save()</a>, and <a class="el" href="a06413.html#l00086">NLSOUND::CSoundAnimation::setFilename()</a>.
+<p>
+<div class="fragment"><pre>00162 {
+00163 <a class="code" href="a04199.html#a6">nlassert</a>(anim);
+00164 <a class="code" href="a04199.html#a6">nlassert</a>(!<a class="code" href="a05377.html#a2">filename</a>.empty());
+00165
+00166 anim-&gt;<a class="code" href="a03413.html#NLSOUND_1_1CSoundAnimationa12">setFilename</a>(filename);
+00167 anim-&gt;<a class="code" href="a03413.html#NLSOUND_1_1CSoundAnimationa10">save</a> ();
+00168 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera11" doxytag="NLSOUND::CSoundAnimManager::stopAnimation" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLSOUND::CSoundAnimManager::stopAnimation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a05381.html#a56">TSoundAnimPlayId</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>playbackId</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Stop the playing of a sound animation. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>name</em>&nbsp;</td><td>The playback id that was returned by playAnimation.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06408.html#l00255">255</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+References <a class="el" href="a06409.html#l00063">NLSOUND::TSoundAnimPlayId</a>.
+<p>
+<div class="fragment"><pre>00256 {
+00257 <span class="comment">/* nlassert(playbackId &gt;= 0);</span>
+00258 <span class="comment"></span>
+00259 <span class="comment"> set&lt;CSoundAnimPlayer*&gt;::iterator iter;</span>
+00260 <span class="comment"></span>
+00261 <span class="comment"> for (iter = _Players.begin(); iter != _Players.end(); )</span>
+00262 <span class="comment"> {</span>
+00263 <span class="comment"> CSoundAnimPlayer* player = *iter; </span>
+00264 <span class="comment"> if (player-&gt;getId() == playbackId)</span>
+00265 <span class="comment"> {</span>
+00266 <span class="comment"> _Players.erase(iter);</span>
+00267 <span class="comment"> break;</span>
+00268 <span class="comment"> }</span>
+00269 <span class="comment"> }*/</span>
+00270 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagera12" doxytag="NLSOUND::CSoundAnimManager::update" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLSOUND::CSoundAnimManager::update </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname" nowrap> <em>lastTime</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>curTime</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Update all the sound animations during playback.
+<p>
+Definition at line <a class="el" href="a06408.html#l00292">292</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>.
+<p>
+<div class="fragment"><pre>00293 {
+00294 <span class="comment">/* set&lt;CSoundAnimPlayer*&gt;::iterator iter;</span>
+00295 <span class="comment"></span>
+00296 <span class="comment"> _Garbage.clear();</span>
+00297 <span class="comment"></span>
+00298 <span class="comment"> for (iter = _Players.begin(); iter != _Players.end(); iter++)</span>
+00299 <span class="comment"> {</span>
+00300 <span class="comment"> CSoundAnimPlayer* player = *iter; </span>
+00301 <span class="comment"> if (player-&gt;isPlaying())</span>
+00302 <span class="comment"> {</span>
+00303 <span class="comment"> player-&gt;update(lastTime, curTime);</span>
+00304 <span class="comment"> }</span>
+00305 <span class="comment"> else</span>
+00306 <span class="comment"> {</span>
+00307 <span class="comment"> _Garbage.push_back(player);</span>
+00308 <span class="comment"> }</span>
+00309 <span class="comment"> }</span>
+00310 <span class="comment"></span>
+00311 <span class="comment"> vector&lt;CSoundAnimPlayer*&gt;::iterator iter2;</span>
+00312 <span class="comment"></span>
+00313 <span class="comment"> for (iter2 = _Garbage.begin(); iter2 != _Garbage.end(); iter2++)</span>
+00314 <span class="comment"> {</span>
+00315 <span class="comment"> iter = _Players.find(*iter2);</span>
+00316 <span class="comment"> if (iter != _Players.end())</span>
+00317 <span class="comment"> {</span>
+00318 <span class="comment"> _Players.erase(iter);</span>
+00319 <span class="comment"> }</span>
+00320 <span class="comment"> }*/</span>
+00321 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagerp0" doxytag="NLSOUND::CSoundAnimManager::_Animations" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05381.html#a58">TSoundAnimVector</a> <a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp0">NLSOUND::CSoundAnimManager::_Animations</a><code> [protected]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The vector of all defined animations
+<p>
+Definition at line <a class="el" href="a06409.html#l00163">163</a> of file <a class="el" href="a06409.html">sound_anim_manager.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagerp1" doxytag="NLSOUND::CSoundAnimManager::_IdMap" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05381.html#a57">TSoundAnimMap</a> <a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp1">NLSOUND::CSoundAnimManager::_IdMap</a><code> [protected]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The conversion table from animation name to id
+<p>
+Definition at line <a class="el" href="a06409.html#l00160">160</a> of file <a class="el" href="a06409.html">sound_anim_manager.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagert0" doxytag="NLSOUND::CSoundAnimManager::_Instance" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03414.html">CSoundAnimManager</a> * <a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagert0">NLSOUND::CSoundAnimManager::_Instance</a> = 0<code> [static, protected]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The one and only singleton instance
+<p>
+Definition at line <a class="el" href="a06408.html#l00040">40</a> of file <a class="el" href="a06408.html">sound_anim_manager.cpp</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundAnimManagerp2" doxytag="NLSOUND::CSoundAnimManager::_Mixer" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a02236.html">UAudioMixer</a>* <a class="el" href="a03414.html#NLSOUND_1_1CSoundAnimManagerp2">NLSOUND::CSoundAnimManager::_Mixer</a><code> [protected]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The mixer
+<p>
+Definition at line <a class="el" href="a06409.html#l00157">157</a> of file <a class="el" href="a06409.html">sound_anim_manager.h</a>.
+<p>
+Referenced by <a class="el" href="a06408.html#l00218">playAnimation()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06409.html">sound_anim_manager.h</a><li><a class="el" href="a06408.html">sound_anim_manager.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:42:49 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>