Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > os > by-pkgid > 9c481c872fb0ae0cbadccdc2f4a18ab6 > files > 87

libasync-devel-0.17.0-5.fc14.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Async: AsyncAudioSelector.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_d583404e3b046262ade615a4e7154c3b.html">include</a>
  </div>
</div>
<div class="contents">
<h1>AsyncAudioSelector.h</h1><a href="AsyncAudioSelector_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef ASYNC_AUDIO_SELECTOR_INCLUDED</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define ASYNC_AUDIO_SELECTOR_INCLUDED</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">/****************************************************************************</span>
<a name="l00033"></a>00033 <span class="comment"> *</span>
<a name="l00034"></a>00034 <span class="comment"> * System Includes</span>
<a name="l00035"></a>00035 <span class="comment"> *</span>
<a name="l00036"></a>00036 <span class="comment"> ****************************************************************************/</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="comment">/****************************************************************************</span>
<a name="l00042"></a>00042 <span class="comment"> *</span>
<a name="l00043"></a>00043 <span class="comment"> * Project Includes</span>
<a name="l00044"></a>00044 <span class="comment"> *</span>
<a name="l00045"></a>00045 <span class="comment"> ****************************************************************************/</span>
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;<a class="code" href="AsyncAudioSource_8h.html" title="This file contains the base class for an audio source.">AsyncAudioSource.h</a>&gt;</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="comment">/****************************************************************************</span>
<a name="l00051"></a>00051 <span class="comment"> *</span>
<a name="l00052"></a>00052 <span class="comment"> * Local Includes</span>
<a name="l00053"></a>00053 <span class="comment"> *</span>
<a name="l00054"></a>00054 <span class="comment"> ****************************************************************************/</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="comment">/****************************************************************************</span>
<a name="l00059"></a>00059 <span class="comment"> *</span>
<a name="l00060"></a>00060 <span class="comment"> * Forward declarations</span>
<a name="l00061"></a>00061 <span class="comment"> *</span>
<a name="l00062"></a>00062 <span class="comment"> ****************************************************************************/</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="comment">/****************************************************************************</span>
<a name="l00067"></a>00067 <span class="comment"> *</span>
<a name="l00068"></a>00068 <span class="comment"> * Namespace</span>
<a name="l00069"></a>00069 <span class="comment"> *</span>
<a name="l00070"></a>00070 <span class="comment"> ****************************************************************************/</span>
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="keyword">namespace </span>Async
<a name="l00073"></a>00073 {
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 <span class="comment">/****************************************************************************</span>
<a name="l00077"></a>00077 <span class="comment"> *</span>
<a name="l00078"></a>00078 <span class="comment"> * Forward declarations of classes inside of the declared namespace</span>
<a name="l00079"></a>00079 <span class="comment"> *</span>
<a name="l00080"></a>00080 <span class="comment"> ****************************************************************************/</span>
<a name="l00081"></a>00081 
<a name="l00082"></a>00082   
<a name="l00083"></a>00083 
<a name="l00084"></a>00084 <span class="comment">/****************************************************************************</span>
<a name="l00085"></a>00085 <span class="comment"> *</span>
<a name="l00086"></a>00086 <span class="comment"> * Defines &amp; typedefs</span>
<a name="l00087"></a>00087 <span class="comment"> *</span>
<a name="l00088"></a>00088 <span class="comment"> ****************************************************************************/</span>
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="comment">/****************************************************************************</span>
<a name="l00093"></a>00093 <span class="comment"> *</span>
<a name="l00094"></a>00094 <span class="comment"> * Exported Global Variables</span>
<a name="l00095"></a>00095 <span class="comment"> *</span>
<a name="l00096"></a>00096 <span class="comment"> ****************************************************************************/</span>
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="comment">/****************************************************************************</span>
<a name="l00101"></a>00101 <span class="comment"> *</span>
<a name="l00102"></a>00102 <span class="comment"> * Class definitions</span>
<a name="l00103"></a>00103 <span class="comment"> *</span>
<a name="l00104"></a>00104 <span class="comment"> ****************************************************************************/</span>
<a name="l00105"></a>00105 
<a name="l00114"></a><a class="code" href="classAsync_1_1AudioSelector.html">00114</a> <span class="keyword">class </span><a class="code" href="classAsync_1_1AudioSelector.html" title="This class is used to select one of many audio streams.">AudioSelector</a> : <span class="keyword">public</span> <a class="code" href="classAsync_1_1AudioSource.html" title="The base class for an audio source.">AudioSource</a>
<a name="l00115"></a>00115 {
<a name="l00116"></a>00116   <span class="keyword">public</span>:
<a name="l00120"></a>00120     <a class="code" href="classAsync_1_1AudioSelector.html#aee8cde930809923a8cdddffd1c61dcb6" title="Default constuctor.">AudioSelector</a>(<span class="keywordtype">void</span>);
<a name="l00121"></a>00121   
<a name="l00125"></a>00125     <a class="code" href="classAsync_1_1AudioSelector.html#a12985137ee93d13a1cfd6676b967bd8c" title="Destructor.">~AudioSelector</a>(<span class="keywordtype">void</span>);
<a name="l00126"></a>00126   
<a name="l00131"></a>00131     <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioSelector.html#a79ff596390b030fb1115421d4da0dc0c" title="Add an audio source to the selector.">addSource</a>(<a class="code" href="classAsync_1_1AudioSource.html" title="The base class for an audio source.">AudioSource</a> *source);
<a name="l00132"></a>00132     
<a name="l00137"></a>00137     <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioSelector.html#af103c4018bb86a502af989839995024d" title="Remove a previously added audio source from the selector.">removeSource</a>(<a class="code" href="classAsync_1_1AudioSource.html" title="The base class for an audio source.">AudioSource</a> *source);
<a name="l00138"></a>00138     
<a name="l00144"></a>00144     <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioSelector.html#a7dec7fe2482e00f235449eb0c4b5319e" title="Set the prio to be used for selection.">setSelectionPrio</a>(<a class="code" href="classAsync_1_1AudioSource.html" title="The base class for an audio source.">AudioSource</a> *source, <span class="keywordtype">int</span> prio);
<a name="l00145"></a>00145     
<a name="l00151"></a>00151     <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioSelector.html#aa121b52addd8936e38ee967f9c5d71ad" title="Enable autoselection on the given source.">enableAutoSelect</a>(<a class="code" href="classAsync_1_1AudioSource.html" title="The base class for an audio source.">AudioSource</a> *source, <span class="keywordtype">int</span> prio);
<a name="l00152"></a>00152 
<a name="l00157"></a>00157     <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioSelector.html#a33b3cc51aa54979610564bfcd0fca4bc" title="Disable autoselection on the given source.">disableAutoSelect</a>(<a class="code" href="classAsync_1_1AudioSource.html" title="The base class for an audio source.">AudioSource</a> *source);
<a name="l00158"></a>00158     
<a name="l00165"></a>00165     <span class="keywordtype">bool</span> <a class="code" href="classAsync_1_1AudioSelector.html#a3b60b1b814cec1ecb9cf19e0a0fbe082" title="Find out if auto select is enabled or not for the given source.">autoSelectEnabled</a>(<a class="code" href="classAsync_1_1AudioSource.html" title="The base class for an audio source.">AudioSource</a> *source);
<a name="l00166"></a>00166 
<a name="l00171"></a>00171     <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioSelector.html#ab15e0babb1913f7c585b25e20afc58f9" title="Select one of the previously added audio sources.">selectSource</a>(<a class="code" href="classAsync_1_1AudioSource.html" title="The base class for an audio source.">AudioSource</a> *source);
<a name="l00172"></a>00172     
<a name="l00173"></a>00173     
<a name="l00174"></a>00174   <span class="keyword">protected</span>:
<a name="l00175"></a>00175     
<a name="l00176"></a>00176   <span class="keyword">private</span>:
<a name="l00177"></a>00177     <span class="keyword">class </span><a class="code" href="classAsync_1_1AudioSelector.html#a34af6289162369d1407283667daf73f1">Branch</a>;
<a name="l00178"></a>00178     <span class="keyword">typedef</span> std::map&lt;Async::AudioSource *, Branch *&gt; BranchMap;
<a name="l00179"></a>00179     <span class="keyword">class </span>NullBranch;
<a name="l00180"></a>00180     
<a name="l00181"></a>00181     BranchMap   branch_map;
<a name="l00182"></a>00182     NullBranch  *null_branch;
<a name="l00183"></a>00183     
<a name="l00184"></a>00184     <a class="code" href="classAsync_1_1AudioSelector.html#aee8cde930809923a8cdddffd1c61dcb6" title="Default constuctor.">AudioSelector</a>(<span class="keyword">const</span> <a class="code" href="classAsync_1_1AudioSelector.html" title="This class is used to select one of many audio streams.">AudioSelector</a>&amp;);
<a name="l00185"></a>00185     <a class="code" href="classAsync_1_1AudioSelector.html" title="This class is used to select one of many audio streams.">AudioSelector</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classAsync_1_1AudioSelector.html" title="This class is used to select one of many audio streams.">AudioSelector</a>&amp;);
<a name="l00186"></a>00186     <span class="keywordtype">void</span> selectBranch(<a class="code" href="classAsync_1_1AudioSelector.html#a34af6289162369d1407283667daf73f1">Branch</a> *branch);
<a name="l00187"></a>00187     
<a name="l00188"></a><a class="code" href="classAsync_1_1AudioSelector.html#a34af6289162369d1407283667daf73f1">00188</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classAsync_1_1AudioSelector.html#a34af6289162369d1407283667daf73f1">Branch</a>;
<a name="l00189"></a>00189     
<a name="l00190"></a>00190 };  <span class="comment">/* class AudioSelector */</span>
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 } <span class="comment">/* namespace */</span>
<a name="l00194"></a>00194 
<a name="l00195"></a>00195 <span class="preprocessor">#endif </span><span class="comment">/* ASYNC_AUDIO_SELECTOR_INCLUDED */</span>
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 <span class="comment">/*</span>
<a name="l00200"></a>00200 <span class="comment"> * This file has not been truncated</span>
<a name="l00201"></a>00201 <span class="comment"> */</span>
<a name="l00202"></a>00202 
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address>
</body>
</html>