aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03416.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/a03416.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a03416.html')
-rw-r--r--docs/doxygen/nel/a03416.html1035
1 files changed, 1035 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03416.html b/docs/doxygen/nel/a03416.html
new file mode 100644
index 00000000..b9c6144c
--- /dev/null
+++ b/docs/doxygen/nel/a03416.html
@@ -0,0 +1,1035 @@
+<!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::CSoundBank 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::CSoundBank Class Reference</h1><code>#include &lt;<a class="el" href="a06415.html">sound_bank.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+A set of sounds. <dl compact><dt><b>Author:</b></dt><dd>Peter Hanappe Boris Boucher <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06415.html#l00050">50</a> of file <a class="el" href="a06415.html">sound_bank.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>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka0">addSound</a> (<a class="el" href="a02246.html">CSound</a> *sound)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka1">bufferLoaded</a> (const <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &amp;bufferName, <a class="el" href="a02298.html">IBuffer</a> *<a class="el" href="a04223.html#a589">buffer</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka2">bufferUnloaded</a> (const <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &amp;bufferName)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka3">countSounds</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the number of sounds in this bank. <a href="#NLSOUND_1_1CSoundBanka3"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka4">getNames</a> (std::vector&lt; <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &gt; &amp;names)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the names of the sounds. <a href="#NLSOUND_1_1CSoundBanka4"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02246.html">CSound</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka5">getSound</a> (const <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &amp;name)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a sound corresponding to a name. <a href="#NLSOUND_1_1CSoundBanka5"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka6">isLoaded</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the sounds in this bank have been loaded. <a href="#NLSOUND_1_1CSoundBanka6"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka7">load</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load all the sounds. <a href="#NLSOUND_1_1CSoundBanka7"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka8">registerBufferAssoc</a> (<a class="el" href="a03394.html">CSimpleSound</a> *sound, <a class="el" href="a02298.html">IBuffer</a> *<a class="el" href="a04223.html#a589">buffer</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka9">removeSound</a> (const <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &amp;name)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka10">unload</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove all the sounds in this bank. <a href="#NLSOUND_1_1CSoundBanka10"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka11">unregisterBufferAssoc</a> (<a class="el" href="a03394.html">CSimpleSound</a> *sound, <a class="el" href="a02298.html">IBuffer</a> *<a class="el" href="a04223.html#a589">buffer</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanka12">~CSoundBank</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <a href="#NLSOUND_1_1CSoundBanka12"></a><br><br></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="a03416.html">CSoundBank</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanke0">instance</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Release all the loaded sound banks. <a href="#NLSOUND_1_1CSoundBanke0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanke1">release</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Private Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::hash_map&lt; <a class="el" href="a05378.html#a236">NLMISC::TStringId</a>,<br>
+ <a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky1">TSimpleSoundContainer</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky0">TBufferAssocContainer</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::hash_set&lt; class <br>
+<a class="el" href="a03394.html">CSimpleSound</a> *, <a class="el" href="a03908.html">THashPtr</a>&lt;<br>
+ <a class="el" href="a03394.html">CSimpleSound</a> * &gt; &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky1">TSimpleSoundContainer</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::hash_map&lt; <a class="el" href="a05378.html#a236">NLMISC::TStringId</a>,<br>
+ <a class="el" href="a02246.html">CSound</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky2">TSoundTable</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sound names hash map. <a href="#NLSOUND_1_1CSoundBanky2"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBankd0">CSoundBank</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#NLSOUND_1_1CSoundBankd0"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky0">TBufferAssocContainer</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assoc from buffer to sound. Used for sound unloading. <a href="#NLSOUND_1_1CSoundBankr0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBankr1">_Loaded</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky2">TSoundTable</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a></td></tr>
+
+<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03416.html">CSoundBank</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03416.html#NLSOUND_1_1CSoundBankv0">_Instance</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="a03416.html">CSoundBank</a> singleton instance. <a href="#NLSOUND_1_1CSoundBankv0"></a><br><br></td></tr>
+</table>
+<hr><h2>Member Typedef Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CSoundBanky0" doxytag="NLSOUND::CSoundBank::TBufferAssocContainer" ></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"> typedef std::hash_map&lt;<a class="el" href="a05378.html#a236">NLMISC::TStringId</a>, <a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky1">TSimpleSoundContainer</a> &gt; <a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky0">NLSOUND::CSoundBank::TBufferAssocContainer</a><code> [private]</code>
+ </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="a06415.html#l00107">107</a> of file <a class="el" href="a06415.html">sound_bank.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanky1" doxytag="NLSOUND::CSoundBank::TSimpleSoundContainer" ></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"> typedef std::hash_set&lt;class <a class="el" href="a03394.html">CSimpleSound</a>*, <a class="el" href="a03908.html">THashPtr</a>&lt;<a class="el" href="a03394.html">CSimpleSound</a>*&gt; &gt; <a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky1">NLSOUND::CSoundBank::TSimpleSoundContainer</a><code> [private]</code>
+ </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="a06415.html#l00105">105</a> of file <a class="el" href="a06415.html">sound_bank.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanky2" doxytag="NLSOUND::CSoundBank::TSoundTable" ></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"> typedef std::hash_map&lt;<a class="el" href="a05378.html#a236">NLMISC::TStringId</a>, <a class="el" href="a02246.html">CSound</a>*&gt; <a class="el" href="a03416.html#NLSOUND_1_1CSoundBanky2">NLSOUND::CSoundBank::TSoundTable</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Sound names hash map.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06415.html#l00110">110</a> of file <a class="el" href="a06415.html">sound_bank.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka12" doxytag="NLSOUND::CSoundBank::~CSoundBank" ></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::CSoundBank::~<a class="el" href="a03416.html">CSoundBank</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>
+Destructor.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06414.html#l00146">146</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a06414.html#l00301">unload()</a>.
+<p>
+<div class="fragment"><pre>00147 {
+00148 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBanka10">unload</a>();
+00149 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBankd0" doxytag="NLSOUND::CSoundBank::CSoundBank" ></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::CSoundBank::CSoundBank </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, private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Constructor.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06415.html#l00099">99</a> of file <a class="el" href="a06415.html">sound_bank.h</a>.
+<p>
+Referenced by <a class="el" href="a06414.html#l00054">instance()</a>.
+<p>
+<div class="fragment"><pre>00099 : <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr1">_Loaded</a>(<span class="keyword">false</span>) {};
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka0" doxytag="NLSOUND::CSoundBank::addSound" ></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::CSoundBank::addSound </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02246.html">CSound</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>sound</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="a06414.html#l00151">151</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a06407.html#l00108">NLSOUND::CSound::getName()</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+Referenced by <a class="el" href="a06414.html#l00277">load()</a>.
+<p>
+<div class="fragment"><pre>00152 {
+00153 std::pair&lt;TSoundTable::iterator, bool&gt; ret;
+00154 ret = <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.insert(make_pair(sound-&gt;getName(), sound));
+00155 <a class="code" href="a04199.html#a6">nlassert</a>(ret.second);
+00156 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka1" doxytag="NLSOUND::CSoundBank::bufferLoaded" ></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::CSoundBank::bufferLoaded </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>bufferName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02298.html">IBuffer</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>buffer</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Called by <a class="el" href="a03346.html">CSampleBank</a> when a sample(buffer) is loaded. Regenerate link between <a class="el" href="a02246.html">CSound</a> and <a class="el" href="a02298.html">IBuffer</a>.
+<p>
+Definition at line <a class="el" href="a06414.html#l00089">89</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a06415.html#l00113">_BufferAssoc</a>, <a class="el" href="a05646.html#l00649">buffer</a>, and <a class="el" href="a06388.html#l00064">NLSOUND::CSimpleSound::setBuffer()</a>.
+<p>
+<div class="fragment"><pre>00090 {
+00091 <span class="comment">// std::map&lt;std::string, std::vector&lt;TBufferAssoc&gt; &gt;::iterator it(_BufferAssoc.find(buffer-&gt;getName()));</span>
+00092 TBufferAssocContainer::iterator it(<a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a>.find(<a class="code" href="a04223.html#a589">buffer</a>-&gt;getName()));
+00093
+00094 <span class="keywordflow">if</span> (it != <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a>.end())
+00095 {
+00096 <span class="comment">// ok, found some sound associated with this buffer.</span>
+00097 <span class="comment">// update all sounds.</span>
+00098 TSimpleSoundContainer::iterator first(it-&gt;second.begin()), last(it-&gt;second.end());
+00099 <span class="keywordflow">for</span> (; first != last; ++first)
+00100 {
+00101 CSimpleSound *ss = const_cast&lt;CSimpleSound*&gt;(*(it-&gt;second.begin()));
+00102 <span class="comment">// restore the associated buffer.</span>
+00103 ss-&gt;setBuffer(buffer);
+00104 }
+00105 }
+00106
+00107 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka2" doxytag="NLSOUND::CSoundBank::bufferUnloaded" ></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::CSoundBank::bufferUnloaded </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>bufferName</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>
+Called by <a class="el" href="a03346.html">CSampleBank</a> when a sample(buffer) is unloaded. Remove link from <a class="el" href="a02246.html">CSound</a> to unloaded <a class="el" href="a02298.html">IBuffer</a>.
+<p>
+Definition at line <a class="el" href="a06414.html#l00070">70</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a06415.html#l00113">_BufferAssoc</a>, and <a class="el" href="a06388.html#l00064">NLSOUND::CSimpleSound::setBuffer()</a>.
+<p>
+<div class="fragment"><pre>00071 {
+00072 TBufferAssocContainer::iterator it(<a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a>.find(bufferName));
+00073
+00074 <span class="keywordflow">if</span> (it != <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a>.end())
+00075 {
+00076 <span class="comment">// ok, found some sound associated with this buffer.</span>
+00077 <span class="comment">// update all sounds.</span>
+00078 TSimpleSoundContainer::iterator first(it-&gt;second.begin()), last(it-&gt;second.end());
+00079 <span class="keywordflow">for</span> (; first != last; ++first)
+00080 {
+00081 <span class="comment">// remove the associated buffer.</span>
+00082 CSimpleSound *ss = const_cast&lt;CSimpleSound*&gt;(*(first));
+00083 ss-&gt;setBuffer(NULL);
+00084 }
+00085 }
+00086 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka3" doxytag="NLSOUND::CSoundBank::countSounds" ></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="a04558.html#a15">uint</a> NLSOUND::CSoundBank::countSounds </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></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the number of sounds in this bank.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06414.html#l00380">380</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+<div class="fragment"><pre>00381 {
+00382 <span class="keywordflow">return</span> <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.size();
+00383 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka4" doxytag="NLSOUND::CSoundBank::getNames" ></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::CSoundBank::getNames </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>names</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>
+Return the names of the sounds.
+<p>
+Return the names of the sounds
+<p>
+Definition at line <a class="el" href="a06414.html#l00367">367</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+<div class="fragment"><pre>00368 {
+00369 TSoundTable::const_iterator iter;
+00370 <span class="keywordflow">for</span> (iter = <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.begin(); iter != <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.end(); ++iter)
+00371 {
+00372 names.push_back((*iter).first);
+00373 <span class="comment">//nlwarning("getting sound %s", (*iter).first);</span>
+00374 }
+00375 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka5" doxytag="NLSOUND::CSoundBank::getSound" ></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="a02246.html">CSound</a> * NLSOUND::CSoundBank::getSound </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &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></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return a sound corresponding to a name.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06414.html#l00350">350</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+<div class="fragment"><pre>00351 {
+00352 <span class="comment">// Find sound</span>
+00353 TSoundTable::iterator iter = <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.find(name);
+00354 <span class="keywordflow">if</span> ( iter == <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.end() )
+00355 {
+00356 <span class="keywordflow">return</span> 0;
+00357 }
+00358 <span class="keywordflow">else</span>
+00359 {
+00360 <span class="keywordflow">return</span> (*iter).second;
+00361 }
+00362 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanke0" doxytag="NLSOUND::CSoundBank::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="a03416.html">CSoundBank</a> * NLSOUND::CSoundBank::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> [static]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Release all the loaded sound banks.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06414.html#l00054">54</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a06415.html#l00099">CSoundBank()</a>.
+<p>
+<div class="fragment"><pre>00055 {
+00056 NL_ALLOC_CONTEXT(NLSOUND_CSoundBank);
+00057 <span class="keywordflow">if</span> (<a class="code" href="a03416.html#NLSOUND_1_1CSoundBankv0">_Instance</a> == 0)
+00058 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankv0">_Instance</a> = <span class="keyword">new</span> <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankd0">CSoundBank</a>();
+00059 <span class="keywordflow">return</span> <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankv0">_Instance</a>;
+00060 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka6" doxytag="NLSOUND::CSoundBank::isLoaded" ></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::CSoundBank::isLoaded </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></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Returns true if the sounds in this bank have been loaded.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06414.html#l00342">342</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+<div class="fragment"><pre>00343 {
+00344 <span class="keywordflow">return</span> <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr1">_Loaded</a>;
+00345 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka7" doxytag="NLSOUND::CSoundBank::load" ></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::CSoundBank::load </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></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Load all the sounds.
+<p>
+Load all the sound samples.<p>
+Can throw EPathNotFound or <a class="el" href="a03823.html">ESoundFileNotFound</a> (check Exception)
+<p>
+Definition at line <a class="el" href="a06414.html#l00277">277</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a06414.html#l00151">addSound()</a>, <a class="el" href="a05565.html#l00219">NLSOUND::Container</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+<div class="fragment"><pre>00278 {
+00279 <span class="comment">// this structure is fill by the loadForm() function and will contain all you need</span>
+00280 std::map&lt;std::string, CSoundSerializer&gt; <a class="code" href="a05381.html#a6">Container</a>;
+00281 <a class="code" href="a04199.html#a6">nlassert</a>(!_Loaded);
+00282 <span class="comment">// Just call the GEORGE::loadFrom method to read all available sounds</span>
+00283 ::loadForm(<span class="stringliteral">"sound"</span>, CAudioMixerUser::instance()-&gt;getPackedSheetPath()+<span class="stringliteral">"sounds.packed_sheets"</span>, <a class="code" href="a05381.html#a6">Container</a>, CAudioMixerUser::instance()-&gt;getPackedSheetUpdate(), <span class="keyword">false</span>);
+00284 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr1">_Loaded</a> = <span class="keyword">true</span>;
+00285
+00286 <span class="comment">// add all the loaded sound in the sound banks</span>
+00287 std::map&lt;std::string, CSoundSerializer&gt;::iterator first(<a class="code" href="a05381.html#a6">Container</a>.begin()), last(<a class="code" href="a05381.html#a6">Container</a>.end());
+00288 <span class="keywordflow">for</span> (; first != last; ++first)
+00289 {
+00290 <span class="keywordflow">if</span> (first-&gt;second.Sound != 0)
+00291 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBanka0">addSound</a>(first-&gt;second.Sound);
+00292 }
+00293
+00294 <a class="code" href="a05381.html#a6">Container</a>.clear();
+00295 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka8" doxytag="NLSOUND::CSoundBank::registerBufferAssoc" ></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::CSoundBank::registerBufferAssoc </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03394.html">CSimpleSound</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>sound</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02298.html">IBuffer</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>buffer</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></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="a06414.html#l00109">109</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a06415.html#l00113">_BufferAssoc</a>, and <a class="el" href="a05646.html#l00649">buffer</a>.
+<p>
+<div class="fragment"><pre>00110 {
+00111 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a589">buffer</a> != NULL)
+00112 {
+00113 <span class="keyword">const</span> NLMISC::TStringId &amp;bufferName = <a class="code" href="a04223.html#a589">buffer</a>-&gt;getName();
+00114 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a>[bufferName].insert(sound);
+00115 }
+00116 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanke1" doxytag="NLSOUND::CSoundBank::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::CSoundBank::release </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> [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="a06414.html#l00062">62</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+<div class="fragment"><pre>00063 {
+00064 <span class="keywordflow">if</span> (<a class="code" href="a03416.html#NLSOUND_1_1CSoundBankv0">_Instance</a> != 0)
+00065 <span class="keyword">delete</span> <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankv0">_Instance</a>;
+00066 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankv0">_Instance</a> = 0;
+00067 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka9" doxytag="NLSOUND::CSoundBank::removeSound" ></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::CSoundBank::removeSound </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a05378.html#a236">NLMISC::TStringId</a> &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></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="a06414.html#l00158">158</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+<div class="fragment"><pre>00159 {
+00160 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.erase(name);
+00161 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka10" doxytag="NLSOUND::CSoundBank::unload" ></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::CSoundBank::unload </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></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Remove all the sounds in this bank.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06414.html#l00301">301</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+Referenced by <a class="el" href="a06414.html#l00146">~CSoundBank()</a>.
+<p>
+<div class="fragment"><pre>00302 {
+00303 <a class="code" href="a04199.html#a6">nlassert</a>(_Loaded);
+00304
+00305 TSoundTable::iterator first(<a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.begin()), last(<a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.end());
+00306 <span class="keywordflow">for</span> (; first != last; ++first)
+00307 {
+00308 <span class="keyword">delete</span> first-&gt;second;
+00309 }
+00310
+00311 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr2">_Sounds</a>.clear();
+00312 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr1">_Loaded</a> = <span class="keyword">false</span>;
+00313
+00314 <span class="comment">/* vector&lt;CSound*&gt; vec;</span>
+00315 <span class="comment"></span>
+00316 <span class="comment"></span>
+00317 <span class="comment"> TSoundTable::iterator map_iter;</span>
+00318 <span class="comment"></span>
+00319 <span class="comment"> for (map_iter = _Sounds.begin(); map_iter != _Sounds.end(); ++map_iter)</span>
+00320 <span class="comment"> {</span>
+00321 <span class="comment"> // We can't delete directly second because the map is based on second-&gt;getName()</span>
+00322 <span class="comment"> vec.push_back( (*map_iter).second );</span>
+00323 <span class="comment"> }</span>
+00324 <span class="comment"> </span>
+00325 <span class="comment"> _Sounds.clear();</span>
+00326 <span class="comment"></span>
+00327 <span class="comment"> vector&lt;CSound*&gt;::iterator vec_iter;</span>
+00328 <span class="comment"></span>
+00329 <span class="comment"> for (vec_iter = vec.begin(); vec_iter != vec.end(); ++vec_iter)</span>
+00330 <span class="comment"> {</span>
+00331 <span class="comment"> CSound *sound = *vec_iter;</span>
+00332 <span class="comment"> delete sound;</span>
+00333 <span class="comment"> }</span>
+00334 <span class="comment"></span>
+00335 <span class="comment"> _Loaded = false;</span>
+00336 <span class="comment">*/</span>
+00337 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBanka11" doxytag="NLSOUND::CSoundBank::unregisterBufferAssoc" ></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::CSoundBank::unregisterBufferAssoc </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03394.html">CSimpleSound</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>sound</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02298.html">IBuffer</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>buffer</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></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="a06414.html#l00118">118</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>.
+<p>
+References <a class="el" href="a06415.html#l00113">_BufferAssoc</a>, <a class="el" href="a05646.html#l00649">buffer</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+<div class="fragment"><pre>00119 {
+00120 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a589">buffer</a> != NULL)
+00121 {
+00122 <span class="keyword">const</span> <a class="code" href="a05378.html#a236">TStringId</a> &amp;bufferName = <a class="code" href="a04223.html#a589">buffer</a>-&gt;getName();
+00123 TBufferAssocContainer::iterator it(<a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a>.find(bufferName));
+00124
+00125 <span class="keywordflow">if</span> (it != <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a>.end())
+00126 {
+00127 TSimpleSoundContainer::iterator it2(it-&gt;second.find(sound));
+00128
+00129 <a class="code" href="a04199.html#a6">nlassert</a>(it2 != it-&gt;second.end());
+00130 it-&gt;second.erase(it2);
+00131
+00132 <span class="keywordflow">if</span> (it-&gt;second.empty())
+00133 {
+00134 <span class="comment">// last sound refenrecing this buffer</span>
+00135 <a class="code" href="a03416.html#NLSOUND_1_1CSoundBankr0">_BufferAssoc</a>.erase(it);
+00136 }
+00137
+00138 }
+00139 }
+00140 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CSoundBankr0" doxytag="NLSOUND::CSoundBank::_BufferAssoc" ></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="a03416.html#NLSOUND_1_1CSoundBanky0">TBufferAssocContainer</a> <a class="el" href="a03416.html#NLSOUND_1_1CSoundBankr0">NLSOUND::CSoundBank::_BufferAssoc</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Assoc from buffer to sound. Used for sound unloading.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06415.html#l00113">113</a> of file <a class="el" href="a06415.html">sound_bank.h</a>.
+<p>
+Referenced by <a class="el" href="a06414.html#l00089">bufferLoaded()</a>, <a class="el" href="a06414.html#l00070">bufferUnloaded()</a>, <a class="el" href="a06414.html#l00109">registerBufferAssoc()</a>, and <a class="el" href="a06414.html#l00118">unregisterBufferAssoc()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBankv0" doxytag="NLSOUND::CSoundBank::_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="a03416.html">CSoundBank</a> * <a class="el" href="a03416.html#NLSOUND_1_1CSoundBankv0">NLSOUND::CSoundBank::_Instance</a><code> [static, private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<a class="el" href="a03416.html">CSoundBank</a> singleton instance.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06414.html#l00050">50</a> of file <a class="el" href="a06414.html">sound_bank.cpp</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBankr1" doxytag="NLSOUND::CSoundBank::_Loaded" ></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 <a class="el" href="a03416.html#NLSOUND_1_1CSoundBankr1">NLSOUND::CSoundBank::_Loaded</a><code> [private]</code>
+ </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="a06415.html#l00119">119</a> of file <a class="el" href="a06415.html">sound_bank.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CSoundBankr2" doxytag="NLSOUND::CSoundBank::_Sounds" ></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="a03416.html#NLSOUND_1_1CSoundBanky2">TSoundTable</a> <a class="el" href="a03416.html#NLSOUND_1_1CSoundBankr2">NLSOUND::CSoundBank::_Sounds</a><code> [private]</code>
+ </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="a06415.html#l00116">116</a> of file <a class="el" href="a06415.html">sound_bank.h</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06415.html">sound_bank.h</a><li><a class="el" href="a06414.html">sound_bank.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:43:15 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>