aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/audio__mixer__user_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/audio__mixer__user_8h-source.html')
-rw-r--r--docs/doxygen/nel/audio__mixer__user_8h-source.html375
1 files changed, 375 insertions, 0 deletions
diff --git a/docs/doxygen/nel/audio__mixer__user_8h-source.html b/docs/doxygen/nel/audio__mixer__user_8h-source.html
new file mode 100644
index 00000000..fc76afcb
--- /dev/null
+++ b/docs/doxygen/nel/audio__mixer__user_8h-source.html
@@ -0,0 +1,375 @@
+<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+<HTML>
+<HEAD>
+ <TITLE>nevrax.org : docs</TITLE>
+ <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css">
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
+</HEAD>
+<BODY MARGINHEIGHT="0" MARGINWIDTH="0">
+
+<!-- uplinks -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ </TR>
+</TABLE>
+
+<!-- banner Nevrax -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%>
+ <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR>
+</TABLE>
+
+<!-- main table -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+ <!------ Begin Box ------>
+ <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black>
+ <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF>
+ <TABLE cellspacing=0 cellpadding=1 border=0>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr>
+ </TABLE>
+ </TD></TR></TABLE></TD></TR></TABLE>
+ <!------ End Box ------>
+
+ </TD>
+ <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+<!-- title -->
+<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
+<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
+</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
+</td></tr></table>
+&nbsp;
+
+<!-- block -->
+<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD>
+ <TD><B>Documentation</B></TD>
+ <TD ALIGN=RIGHT>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
+<hr><h1>audio_mixer_user.h</h1><a href="audio__mixer__user_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
+00007 <font class="comment">/* Copyright, 2001 Nevrax Ltd.</font>
+00008 <font class="comment"> *</font>
+00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
+00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
+00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
+00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
+00013 <font class="comment"> * any later version.</font>
+00014 <font class="comment"></font>
+00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
+00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
+00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
+00018 <font class="comment"> * General Public License for more details.</font>
+00019 <font class="comment"></font>
+00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
+00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
+00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
+00023 <font class="comment"> * MA 02111-1307, USA.</font>
+00024 <font class="comment"> */</font>
+00025
+00026 <font class="preprocessor">#ifndef NL_AUDIO_MIXER_USER_H</font>
+00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_AUDIO_MIXER_USER_H</font>
+00028 <font class="preprocessor"></font>
+00029 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font>
+00030 <font class="preprocessor">#include "<a class="code" href="u__audio__mixer_8h.html">nel/sound/u_audio_mixer.h</a>"</font>
+00031 <font class="preprocessor">#include "<a class="code" href="time__nl_8h.html">nel/misc/time_nl.h</a>"</font>
+00032 <font class="preprocessor">#include "<a class="code" href="source_8h.html">driver/source.h</a>"</font>
+00033 <font class="preprocessor">#include "<a class="code" href="listener__user_8h.html">listener_user.h</a>"</font>
+00034 <font class="preprocessor">#include "<a class="code" href="background__sound__manager_8h.html">background_sound_manager.h</a>"</font>
+00035 <font class="preprocessor">#include "<a class="code" href="mixing__track_8h.html">mixing_track.h</a>"</font>
+00036 <font class="preprocessor">#include "<a class="code" href="sound_8h.html">sound.h</a>"</font>
+00037 <font class="preprocessor">#include &lt;vector&gt;</font>
+00038 <font class="preprocessor">#include &lt;hash_set&gt;</font>
+00039 <font class="preprocessor">#include &lt;list&gt;</font>
+00040
+00041
+00042 <font class="keyword">namespace </font>NLSOUND {
+00043
+00044
+00045 <font class="keyword">class </font>CSimpleSource;
+00046 <font class="keyword">class </font>CEnvSoundUser;
+00047 <font class="keyword">class </font>CEnvEffect;
+00048 <font class="keyword">class </font>CSoundBank;
+00049 <font class="keyword">class </font>CSourceCommon;
+00050
+00051
+00052 <font class="comment">/*</font>
+00053 <font class="comment"> * Max number of tracks (physical sources)</font>
+00054 <font class="comment"> *</font>
+00055 <font class="comment"> * Note: In the Windows implementation of OpenAL, AL_SOURCES_MAX is currently defined to 32</font>
+00056 <font class="comment"> * but seems unused. In alc.c (AL Context implementation), the function alcOpenDevice() contains:</font>
+00057 <font class="comment"> * // Check how many Hardware 3D Streaming buffers can be created</font>
+00058 <font class="comment"> * device-&gt;MaxNoOfSources = dsCaps.dwMaxHw3DStreamingBuffers;</font>
+00059 <font class="comment"> * and this value seems to be no more than 32 in DirectX8.</font>
+00060 <font class="comment"> */</font>
+00061 <font class="keyword">const</font> uint <a class="code" href="namespaceNLSOUND.html#a16">MAX_TRACKS</a> = 32;
+00062
+00064 <font class="keyword">template</font> &lt;<font class="keyword">class</font> Po<font class="keywordtype">int</font>er&gt;
+<a name="l00065"></a><a class="code" href="structNLSOUND_1_1THashPtr.html">00065</a> <font class="keyword">struct </font>THashPtr : <font class="keyword">public</font> std::unary_function&lt;const Pointer &amp;, size_t&gt;
+00066 {
+<a name="l00067"></a><a class="code" href="structNLSOUND_1_1THashPtr.html#a0">00067</a> size_t <a class="code" href="structNLSOUND_1_1THashPtr.html#a0">operator () </a>(<font class="keyword">const</font> Pointer &amp;ptr)<font class="keyword"> const</font>
+00068 <font class="keyword"> </font>{
+00069 std::hash_set&lt;uint&gt;::hasher h;
+00070 <font class="comment">// transtype the pointer into int then hash it</font>
+00071 <font class="keywordflow">return</font> h.operator()(<a class="code" href="memory__common_8h.html#a15">uint</a>(ptr));
+00072 }
+00073 };
+00074
+<a name="l00097"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html">00097</a> <font class="keyword">class </font>CAudioMixerUser : <font class="keyword">public</font> UAudioMixer
+00098 {
+00099 <font class="keyword">public</font>:
+00100
+00102 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a0">CAudioMixerUser</a>();
+<a name="l00104"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#d0">00104</a> <font class="keyword">static</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a0">CAudioMixerUser</a> *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#d0">instance</a>() { <font class="keywordflow">return</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#r0">_Instance</a>; }
+00106 <font class="keyword">virtual</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a1">~CAudioMixerUser</a>();
+00107
+00108
+00117 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a2">init</a>(<font class="comment">/* uint32 balance_period=AUTOBALANCE_DEFAULT_PERIOD */</font>);
+00130 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a3">setPriorityReserve</a>(<a class="code" href="namespaceNLSOUND.html#a82">TSoundPriority</a> priorityChannel, uint reserve);
+00143 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a4">setLowWaterMark</a>(uint <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>);
+00144
+00145
+00147 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a5">reset</a>();
+00149 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a6">enable</a>( <font class="keywordtype">bool</font> b );
+00151 <font class="comment">// virtual void loadEnvEffects( const char *filename );</font>
+00156 <font class="comment"></font> <font class="keyword">virtual</font> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a7">loadSampleBank</a>(<font class="keywordtype">bool</font> async, <font class="keyword">const</font> std::string &amp;filename, std::vector&lt;std::string&gt; *notfoundfiles=NULL );
+00159 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a8">unloadSampleBank</a>( <font class="keyword">const</font> std::string &amp;filename);
+00160 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a9">reloadSampleBanks</a>(<font class="keywordtype">bool</font> async);
+00161 <font class="keyword">virtual</font> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a10">getLoadedSampleSize</a>();
+00162
+00163
+00165 <font class="comment">// virtual void loadSoundBank( const std::string &amp;path );</font>
+00166
+00167
+00168 <font class="comment">// Load environment sounds ; treeRoot can be null if you don't want an access to the envsounds</font>
+00169 <font class="comment">// virtual void loadEnvSounds( const char *filename, UEnvSound **treeRoot=NULL );</font>
+00171 <font class="comment"> virtual TSoundId getSoundId( const std::string &amp;name );</font>
+00172
+00173
+00180 <font class="keyword">virtual</font> USource *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a12">createSource</a>( <font class="keyword">const</font> std::string &amp;name, <font class="keywordtype">bool</font> spawn=<font class="keyword">false</font>, <a class="code" href="namespaceNLSOUND.html#a9">TSpawnEndCallback</a> cb=NULL, <font class="keywordtype">void</font> *cbUserParam = NULL, CSoundContext *context = 0 );
+00182 <font class="keyword">virtual</font> USource *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a12">createSource</a>( <a class="code" href="namespaceNLSOUND.html#a8">TSoundId</a> <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, <font class="keywordtype">bool</font> spawn=<font class="keyword">false</font>, <a class="code" href="namespaceNLSOUND.html#a9">TSpawnEndCallback</a> cb=NULL, <font class="keywordtype">void</font> *cbUserParam = NULL, CSoundContext *context = 0 );
+00184 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a14">addSource</a>( CSourceCommon *source );
+00188 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a15">removeSource</a>( CSourceCommon *source );
+00189
+00191 <font class="comment">// void giveTrack( CSimpleSource *source );</font>
+00193 <font class="comment">// void releaseTrack( CSimpleSource *source );</font>
+00194
+00198 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a16">setListenerPos</a> (<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;pos);
+00199
+<a name="l00201"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a17">00201</a> <font class="keyword">virtual</font> UListener *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a17">getListener</a>() { <font class="keywordflow">return</font> &amp;<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o7">_Listener</a>; }
+00202
+00203
+00205 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a18">selectEnvEffects</a>( <font class="keyword">const</font> std::string &amp;tag );
+00207 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a19">update</a>();
+00208
+00209
+00211 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a20">getSoundNames</a>( std::vector&lt;std::string&gt;&amp; names ) <font class="keyword">const</font>;
+<a name="l00213"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a21">00213</a> <font class="keyword">virtual</font> uint <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a21">getPolyphony</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m3">_NbTracks</a>; }
+<a name="l00215"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a22">00215</a> <font class="keyword">virtual</font> uint <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a22">getSourcesNumber</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m0">_Sources</a>.size(); }
+00217 <font class="keyword">virtual</font> uint <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a23">getPlayingSourcesNumber</a>() <font class="keyword">const</font>;
+00219 <font class="keyword">virtual</font> uint <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a24">getNumberAvailableTracks</a>() <font class="keyword">const</font>;
+00220
+00222 <font class="keyword">virtual</font> std::string <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a25">getSourcesStats</a>() <font class="keyword">const</font>;
+00223
+00224
+00226 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a26">applyListenerMove</a>( <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>&amp; listenerpos );
+00228 <font class="comment">// CEnvSoundUser *getEnvSounds() { return _EnvSounds; }</font>
+<a name="l00230"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a27">00230</a> <font class="comment"> const NLMISC::CVector&amp; getListenPosVector() const { return _ListenPosition; }</font>
+00234 <font class="comment"></font><font class="comment">// void removeMySource( USource *source );</font>
+00236 <font class="comment">// void addAmbiantSound( CSound *sound ) { _AmbSounds.insert( sound ); }</font>
+00237 <font class="comment">// Allow to load sound files (nss) when the corresponding wave file is missing (see CSound)</font>
+00238 <font class="comment">//static void allowMissingWave( bool b ) { CSound::allowMissingWave( b ); } </font>
+00239
+<a name="l00241"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a28">00241</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a28">setSamplePath</a>(<font class="keyword">const</font> std::string&amp; path) { <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o9">_SamplePath</a> = path; }
+00242
+00243
+<a name="l00244"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a29">00244</a> CBackgroundSoundManager *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a29">getBackgroundSoundManager</a>() { <font class="keywordflow">return</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o6">_BackgroundSoundManager</a>; }
+00246 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a30">writeProfile</a>(std::ostream&amp; out);
+00247
+00248 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a31">loadBackgroundSoundFromRegion</a> (<font class="keyword">const</font> <a class="code" href="classNLLIGO_1_1CPrimRegion.html">NLLIGO::CPrimRegion</a> &amp;region);
+00249 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a32">loadBackgroundEffectsFromRegion</a> (<font class="keyword">const</font> <a class="code" href="classNLLIGO_1_1CPrimRegion.html">NLLIGO::CPrimRegion</a> &amp;region);
+00250 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a33">loadBackgroundSamplesFromRegion</a> (<font class="keyword">const</font> <a class="code" href="classNLLIGO_1_1CPrimRegion.html">NLLIGO::CPrimRegion</a> &amp;region);
+00251 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a34">loadBackgroundSound</a> (<font class="keyword">const</font> std::string &amp;continent);
+00252 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a35">playBackgroundSound</a> ();
+00253 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a36">stopBackgroundSound</a> ();
+00254
+00255 <font class="comment">// virtual void setBackgroundSoundDayNightRatio (float ratio) { CBackgroundSoundManager::setDayNightRatio(ratio); }</font>
+00256
+00258 ISoundDriver* <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a37">getSoundDriver</a>();
+00259
+00260 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a38">registerBufferAssoc</a>(CSound *sound, IBuffer *buffer);
+00261 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a39">unregisterBufferAssoc</a>(CSound *sound, IBuffer *buffer);
+00262
+00263 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a40">bufferUnloaded</a>(IBuffer *buffer);
+00264
+00265 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a41">setBackgroundFlags</a>(<font class="keyword">const</font> TBackgroundFlags &amp;backgroundFlags);
+00266
+00267 <font class="comment">// bool setPlaying(CSimpleSource *source);</font>
+00268 <font class="comment">// void unsetPlaying(CSimpleSource *source);</font>
+00269
+00270 CTrack *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a42">getFreeTrack</a>(CSimpleSource *source);
+00271 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a43">freeTrack</a>(CTrack *track);
+00272
+<a name="l00273"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a44">00273</a> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a44">incPlayingSource</a>() { ++<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m1">_PlayingSources</a>; };
+<a name="l00274"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a45">00274</a> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a45">decPlayingSource</a>() { --<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m1">_PlayingSources</a>; };
+00275
+00276
+00277 <font class="keyword">public</font>:
+<a name="l00279"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser_1_1IMixerUpdate.html">00279</a> <font class="keyword">class </font>IMixerUpdate
+00280 {
+00281 <font class="keyword">public</font>:
+00282 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser_1_1IMixerUpdate.html#a0">onUpdate</a>() =0;
+00283 };
+00284
+00286 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a46">registerUpdate</a>(IMixerUpdate *pmixerUpdate);
+00288 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a47">unregisterUpdate</a>(IMixerUpdate *pmixerUpdate);
+00289
+<a name="l00291"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser_1_1IMixerEvent.html">00291</a> <font class="keyword">class </font>IMixerEvent
+00292 {
+00293 <font class="keyword">public</font>:
+00294 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser_1_1IMixerEvent.html#a0">onEvent</a>() =0;
+00295 };
+00296
+00298 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a48">addEvent</a>(IMixerEvent *pmixerEvent, <font class="keyword">const</font> NLMISC::TTime &amp;date);
+00300 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a49">removeEvents</a>(IMixerEvent *pmixerEvent);
+00301
+00303 <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a50">addSourceWaitingForPlay</a>(CSimpleSource *source);
+00304
+00305 <font class="keyword">private</font>:
+00306
+<a name="l00307"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u0">00307</a> <font class="keyword">typedef</font> std::hash_set&lt;CSourceCommon*, THashPtr&lt;CSourceCommon*&gt; &gt; <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u0">TSourceContainer</a>;
+<a name="l00308"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u1">00308</a> <font class="keyword">typedef</font> std::hash_set&lt;IMixerUpdate*, THashPtr&lt;IMixerUpdate*&gt; &gt; <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u1">TMixerUpdateContainer</a>;
+<a name="l00309"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u2">00309</a> <font class="keyword">typedef</font> std::hash_map&lt;IBuffer*, std::vector&lt;class CSound*&gt;, THashPtr&lt;IBuffer*&gt; &gt; <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u2">TBufferToSourceContainer</a>;
+<a name="l00310"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u3">00310</a> <font class="keyword">typedef</font> std::multimap&lt;NLMISC::TTime, IMixerEvent*&gt; <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u3">TTimedEventContainer</a>;
+<a name="l00311"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u4">00311</a> <font class="keyword">typedef</font> std::multimap&lt;IMixerEvent*, TTimedEventContainer::iterator&gt; <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u4">TEventContainer</a>;
+00312
+00313 <font class="keyword">protected</font>:
+<a name="l00315"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#n0">00315</a> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u1">TMixerUpdateContainer</a> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#n0">_UpdateList</a>;
+<a name="l00317"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#n1">00317</a> std::vector&lt;std::pair&lt;IMixerUpdate*, bool&gt; &gt; <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#n1">_UpdateEventList</a>;
+00319 <font class="comment">// std::vector&lt;IMixerUpdate*&gt; _UpdateRemoveList;</font>
+<a name="l00321"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#n2">00321</a> <font class="comment"> TTimedEventContainer _EventList;</font>
+<a name="l00323"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#n3">00323</a> <font class="comment"> TEventContainer _Events;</font>
+<a name="l00325"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#n4">00325</a> <font class="comment"> std::vector&lt;std::pair&lt;NLMISC::TTime, IMixerEvent*&gt; &gt; _EventListUpdate;</font>
+00327 <font class="comment">// std::vector&lt;IMixerEvent*&gt; _EventRemoveList;</font>
+00328
+00330 <font class="comment">// void balanceSources() { if ( moreSourcesThanTracks() ) redispatchSourcesToTrack(); }</font>
+00332 <font class="comment"> void getFreeTracks( uint nb, CTrack **tracks );</font>
+00334 <font class="comment">// void computeEnvEffect( const NLMISC::CVector&amp; listenerpos, bool force=false );</font>
+00336 <font class="comment">// bool moreSourcesThanTracks() const { return _NbTracks &lt; _Sources.size(); }</font>
+00338 <font class="comment">// void redispatchSourcesToTrack();</font>
+00340 <font class="comment">// void removeSource( TSourceContainer::iterator ips);</font>
+00341
+00342 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#b1">getPlayingSoundsPos</a>(std::vector&lt;std::pair&lt;bool, NLMISC::CVector&gt; &gt; &amp;pos);
+00343
+00344
+00345 <font class="keyword">private</font>:
+<a name="l00347"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o0">00347</a> std::vector&lt;CTrack*&gt; <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o0">_FreeTracks</a>;
+00348
+<a name="l00350"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o1">00350</a> <a class="code" href="classstd_1_1list.html">std::list&lt;CSimpleSource*&gt;</a> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o1">_SourceWaitingForPlay</a>;
+00351
+<a name="l00353"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o2">00353</a> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o2">_PriorityReserve</a>[<a class="code" href="namespaceNLSOUND.html#a82a14">NbSoundPriorities</a>];
+<a name="l00355"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o3">00355</a> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o3">_ReserveUsage</a>[<a class="code" href="namespaceNLSOUND.html#a82a14">NbSoundPriorities</a>];
+<a name="l00357"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o4">00357</a> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o4">_LowWaterMark</a>;
+00358
+00360 <font class="keyword">static</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a0">CAudioMixerUser</a> *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#r0">_Instance</a>;
+00361
+<a name="l00363"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o5">00363</a> ISoundDriver *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o5">_SoundDriver</a>;
+00364
+<a name="l00366"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o6">00366</a> CBackgroundSoundManager *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o6">_BackgroundSoundManager</a>;
+00367
+00369 <font class="comment">//TSoundMap _Sounds;</font>
+00370
+00372 <font class="comment">// TSoundSet _AmbSounds;</font>
+00373
+<a name="l00375"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o7">00375</a> CListenerUser <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o7">_Listener</a>;
+00376
+<a name="l00378"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o8">00378</a> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o8">_ListenPosition</a>;
+00379
+00383 <font class="comment">// CEnvSoundUser *_EnvSounds;</font>
+00384
+00386 <font class="comment">// uint32 _BalancePeriod;</font>
+00387
+<a name="l00389"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o9">00389</a> std::string <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o9">_SamplePath</a>;
+00390
+<a name="l00392"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o10">00392</a> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u2">TBufferToSourceContainer</a> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o10">_BufferToSources</a>;
+00393
+00395 <font class="comment">// CSoundBank *_SoundBank;</font>
+00396
+00397 <font class="keyword">public</font>:
+00398
+<a name="l00400"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m0">00400</a> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#u0">TSourceContainer</a> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m0">_Sources</a>;
+00402 <font class="comment">// TSourceContainer _PlayingSources;</font>
+00403
+<a name="l00404"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m1">00404</a> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m1">_PlayingSources</a>;
+00405
+00406
+00408 <font class="comment">// std::vector&lt;CEnvEffect*&gt; _EnvEffects;</font>
+00409
+00410 <font class="keyword">private</font>:
+00411
+<a name="l00413"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o11">00413</a> CEnvEffect *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#o11">_CurEnvEffect</a>;
+00414
+00415 <font class="keyword">public</font>: <font class="comment">// Temp (EDIT)</font>
+00416
+<a name="l00418"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m2">00418</a> CTrack *<a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m2">_Tracks</a> [<a class="code" href="namespaceNLSOUND.html#a16">MAX_TRACKS</a>];
+00419
+<a name="l00421"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m3">00421</a> uint <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m3">_NbTracks</a>;
+00422
+<a name="l00424"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m4">00424</a> uint <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m4">_MaxNbTracks</a>;
+00425
+<a name="l00427"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m5">00427</a> <font class="keywordtype">bool</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m5">_Leaving</a>;
+00428
+<a name="l00429"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m6">00429</a> NLMISC::TTicks <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m6">_StartTime</a>;
+00430
+<a name="l00431"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a51">00431</a> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#a51">curTime</a>() { <font class="keywordflow">return</font> (uint32) (<a class="code" href="classNLMISC_1_1CTime.html#d1">NLMISC::CTime::getLocalTime</a>() - <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m6">_StartTime</a>); }
+00432
+00433
+<a name="l00434"></a><a class="code" href="audio__mixer__user_8h.html#a0">00434</a> <font class="preprocessor">#define NL_PROFILE_MIXER 1</font>
+00435 <font class="preprocessor"></font><font class="preprocessor">#if NL_PROFILE_MIXER</font>
+00436 <font class="preprocessor"></font><font class="keyword">public</font>:
+00437
+<a name="l00438"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m7">00438</a> <font class="keywordtype">double</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m7">_UpdateTime</a>;
+<a name="l00439"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m8">00439</a> <font class="keywordtype">double</font> <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m8">_CreateTime</a>;
+<a name="l00440"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m9">00440</a> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m9">_UpdateCount</a>;
+<a name="l00441"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m10">00441</a> uint32 <a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#m10">_CreateCount</a>;
+00442 <font class="preprocessor">#endif</font>
+00443 <font class="preprocessor"></font>
+<a name="l00444"></a><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#l0">00444</a> <font class="keyword">friend</font> <font class="keyword">struct </font><a class="code" href="classNLSOUND_1_1CAudioMixerUser.html#l0">displaySoundInfoClass</a>;
+00445
+00446 };
+00447
+00448
+00450 <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="namespaceNLSOUND.html#a75">getPriorityStr</a>( <a class="code" href="namespaceNLSOUND.html#a82">TSoundPriority</a> p );
+00451
+00452
+00453 } <font class="comment">// NLSOUND</font>
+00454
+00455
+00456 <font class="preprocessor">#endif // NL_AUDIO_MIXER_USER_H</font>
+00457 <font class="preprocessor"></font>
+00458 <font class="comment">/* End of audio_mixer_user.h */</font>
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
+</TD>
+<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>