aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02228.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a02228.html267
1 files changed, 267 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02228.html b/docs/doxygen/nel/a02228.html
new file mode 100644
index 00000000..276e08f3
--- /dev/null
+++ b/docs/doxygen/nel/a02228.html
@@ -0,0 +1,267 @@
+<!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::CAsyncFileManagerSound::CLoadWavFile 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::CAsyncFileManagerSound::CLoadWavFile Class Reference</h1><p>Inheritance diagram for NLSOUND::CAsyncFileManagerSound::CLoadWavFile:
+<p><center><img src="a02228.png" usemap="#NLSOUND::CAsyncFileManagerSound::CLoadWavFile_map" border="0" alt=""></center>
+<map name="NLSOUND::CAsyncFileManagerSound::CLoadWavFile_map">
+<area href="a02187.html" alt="NLMISC::IRunnable" shape="rect" coords="0,0,320,24">
+</map>
+<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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFilea0">CLoadWavFile</a> (<a class="el" href="a02298.html">IBuffer</a> *pdestBuffer, const std::string &amp;<a class="el" href="a04560.html#a1">filename</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02187.html#NLMISC_1_1IRunnablePosa0">getName</a> (std::string &amp;result) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFilea2">run</a> (void)</td></tr>
+
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFileo0">_Filename</a></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="a02298.html">IBuffer</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFiler0">_pDestbuffer</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFilea0" doxytag="NLSOUND::CAsyncFileManagerSound::CLoadWavFile::CLoadWavFile" ></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::CAsyncFileManagerSound::CLoadWavFile::CLoadWavFile </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02298.html">IBuffer</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>pdestBuffer</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>filename</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="a05459.html#l00137">137</a> of file <a class="el" href="a05459.html">async_file_manager_sound.cpp</a>.
+<p>
+References <a class="el" href="a05460.html#l00073">_pDestbuffer</a>, and <a class="el" href="a05622.html#l00135">nlwarning</a>.
+<p>
+<div class="fragment"><pre>00138 :<a class="code" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFileo0">_Filename</a>(filename), <a class="code" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFiler0">_pDestbuffer</a>(pdestBuffer)
+00139 {
+00140 <span class="keywordflow">if</span> (<a class="code" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFileo0">_Filename</a>.empty())
+00141 {
+00142 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"CAsyncFileManagerSound::CLoadWavFile::CLoadWavFile : file name is empty !"</span>);
+00143 }
+00144 <span class="keywordflow">if</span> (<a class="code" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFiler0">_pDestbuffer</a> == 0)
+00145 {
+00146 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"CAsyncFileManagerSound::CLoadWavFile::CLoadWavFile : dest buffer ptr is null!"</span>);
+00147 }
+00148 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1IRunnablePosa0" doxytag="NLSOUND::CAsyncFileManagerSound::CLoadWavFile::getName" ></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"> virtual void NLMISC::IRunnable::getName </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>result</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Reimplemented in <a class="el" href="a02220.html#NL3D_1_1CAsyncFileManager3D_1_1CMeshLoada1">NL3D::CAsyncFileManager3D::CMeshLoad</a>, <a class="el" href="a02218.html#NL3D_1_1CAsyncFileManager3D_1_1CIGLoada1">NL3D::CAsyncFileManager3D::CIGLoad</a>, <a class="el" href="a02219.html#NL3D_1_1CAsyncFileManager3D_1_1CIGLoadUsera1">NL3D::CAsyncFileManager3D::CIGLoadUser</a>, <a class="el" href="a02222.html#NL3D_1_1CAsyncFileManager3D_1_1CTextureLoada1">NL3D::CAsyncFileManager3D::CTextureLoad</a>, <a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaska1">NL3D::CZoneLoadingTask</a>, <a class="el" href="a02593.html#NLPACS_1_1CGlobalRetriever_1_1CLrLoadera1">NLPACS::CGlobalRetriever::CLrLoader</a>, <a class="el" href="a02223.html#NLMISC_1_1CAsyncFileManager_1_1CFileLoada1">NLMISC::CAsyncFileManager::CFileLoad</a>, <a class="el" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoada1">NLMISC::CAsyncFileManager::CMultipleFileLoad</a>, and <a class="el" href="a02225.html#NLMISC_1_1CAsyncFileManager_1_1CSignala1">NLMISC::CAsyncFileManager::CSignal</a>.
+<p>
+Definition at line <a class="el" href="a06535.html#l00074">74</a> of file <a class="el" href="a06535.html">thread.h</a>.
+<p>
+Referenced by <a class="el" href="a06485.html#l00061">NLMISC::CTaskManager::run()</a>.
+<p>
+<div class="fragment"><pre>00075 {
+00076 result = <span class="stringliteral">"NoName"</span>;
+00077 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFilea2" doxytag="NLSOUND::CAsyncFileManagerSound::CLoadWavFile::run" ></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::CAsyncFileManagerSound::CLoadWavFile::run </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> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Implements <a class="el" href="a02187.html#NLMISC_1_1IRunnablePosa1">NLMISC::IRunnable</a>.
+<p>
+Definition at line <a class="el" href="a05459.html#l00150">150</a> of file <a class="el" href="a05459.html">async_file_manager_sound.cpp</a>.
+<p>
+References <a class="el" href="a05460.html#l00073">_pDestbuffer</a>, <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05709.html#l00119">NLMISC::CIFile::getFileSize()</a>, <a class="el" href="a05465.html#l01103">NLSOUND::CAudioMixerUser::getSoundDriver()</a>, <a class="el" href="a05622.html#l00101">nldebug</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a03419.html#NLSOUND_1_1ISoundDrivera8">NLSOUND::ISoundDriver::readWavBuffer()</a>, <a class="el" href="a05708.html#l00355">NLMISC::CIFile::serialBuffer()</a>, <a class="el" href="a05646.html#l00645">size</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00151 {
+00152 NL_ALLOC_CONTEXT(NLSOUND_CAsyncFileManagerSound);
+00153 <a class="code" href="a04199.html#a0">nldebug</a>(<span class="stringliteral">"Loading sample %s..."</span>, <a class="code" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFileo0">_Filename</a>.c_str());
+00154 <span class="comment">// nlSleep(500);</span>
+00155 CAudioMixerUser *mixer = CAudioMixerUser::instance();
+00156 <span class="keywordflow">if</span> (mixer == 0)
+00157 {
+00158 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"CAsyncFileManagerSound::CLoadWavFile::run : mixer is not avalable !"</span>);
+00159 <span class="keywordflow">return</span>;
+00160 }
+00161
+00162 ISoundDriver *sndDrv = mixer-&gt;getSoundDriver();
+00163 <span class="keywordflow">if</span> (sndDrv == 0)
+00164 {
+00165 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"CAsyncFileManagerSound::CLoadWavFile::run : sound driver is null !"</span>);
+00166 <span class="keywordflow">return</span>;
+00167 }
+00168
+00169 <span class="keywordflow">if</span> (<a class="code" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFiler0">_pDestbuffer</a> == 0)
+00170 {
+00171 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"CAsyncFileManagerSound::CLoadWavFile::run : dest buffer is null !"</span>);
+00172 <span class="keywordflow">return</span>;
+00173 }
+00174
+00175 <span class="keywordflow">if</span> (<a class="code" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFileo0">_Filename</a>.empty())
+00176 {
+00177 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"CAsyncFileManagerSound::CLoadWavFile::run : filename is empty !"</span>);
+00178 <span class="keywordflow">return</span>;
+00179 }
+00180 <span class="keywordflow">try</span>
+00181 {
+00182 <a class="code" href="a02653.html">NLMISC::CIFile</a> ifile(NLMISC::CPath::lookup(_Filename));
+00183 <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a587">size</a> = ifile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea6">getFileSize</a>();
+00184 <a class="code" href="a04558.html#a7">uint8</a> *<a class="code" href="a04223.html#a589">buffer</a> = <span class="keyword">new</span> <a class="code" href="a04558.html#a7">uint8</a>[ifile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea6">getFileSize</a>()];
+00185 ifile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>(buffer, size);
+00186 sndDrv-&gt;readWavBuffer(_pDestbuffer, _Filename, buffer, size);
+00187 <span class="keyword">delete</span> [] <a class="code" href="a04223.html#a589">buffer</a>;
+00188 }
+00189 <span class="keywordflow">catch</span>(...)
+00190 {
+00191 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"CAsyncFileManagerSound::CLoadWavFile::run : Exeption detected during IDriver::loadWavFile(%p, %s)"</span>, _pDestbuffer, <a class="code" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFileo0">_Filename</a>.c_str());
+00192 }
+00193 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFileo0" doxytag="NLSOUND::CAsyncFileManagerSound::CLoadWavFile::_Filename" ></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 <a class="el" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFileo0">NLSOUND::CAsyncFileManagerSound::CLoadWavFile::_Filename</a>
+ </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="a05460.html#l00076">76</a> of file <a class="el" href="a05460.html">async_file_manager_sound.h</a>.
+<p>
+Referenced by <a class="el" href="a05459.html#l00073">NLSOUND::CCancelLoadWavFile::callback()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFiler0" doxytag="NLSOUND::CAsyncFileManagerSound::CLoadWavFile::_pDestbuffer" ></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="a02298.html">IBuffer</a>* <a class="el" href="a02228.html#NLSOUND_1_1CAsyncFileManagerSound_1_1CLoadWavFiler0">NLSOUND::CAsyncFileManagerSound::CLoadWavFile::_pDestbuffer</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="a05460.html#l00073">73</a> of file <a class="el" href="a05460.html">async_file_manager_sound.h</a>.
+<p>
+Referenced by <a class="el" href="a05459.html#l00137">CLoadWavFile()</a>, and <a class="el" href="a05459.html#l00150">run()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05460.html">async_file_manager_sound.h</a><li><a class="el" href="a05459.html">async_file_manager_sound.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:28:17 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>