Sophie

Sophie

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

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: AsyncAudioEncoder.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>AsyncAudioEncoder.h</h1><a href="AsyncAudioEncoder_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00027"></a>00027 <span class="preprocessor">#ifndef ASYNC_AUDIO_ENCODER_INCLUDED</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define ASYNC_AUDIO_ENCODER_INCLUDED</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="comment">/****************************************************************************</span>
<a name="l00032"></a>00032 <span class="comment"> *</span>
<a name="l00033"></a>00033 <span class="comment"> * System Includes</span>
<a name="l00034"></a>00034 <span class="comment"> *</span>
<a name="l00035"></a>00035 <span class="comment"> ****************************************************************************/</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;sigc++/sigc++.h&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;string&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="AsyncAudioSink_8h.html" title="This file contains the base class for an audio sink.">AsyncAudioSink.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="l00113"></a><a class="code" href="classAsync_1_1AudioEncoder.html">00113</a> <span class="keyword">class </span><a class="code" href="classAsync_1_1AudioEncoder.html" title="Base class for an audio encoder.">AudioEncoder</a> : <span class="keyword">public</span> <a class="code" href="classAsync_1_1AudioSink.html" title="The base class for an audio sink.">AudioSink</a>, <span class="keyword">public</span> SigC::Object
<a name="l00114"></a>00114 {
<a name="l00115"></a>00115   <span class="keyword">public</span>:
<a name="l00116"></a>00116     <span class="keyword">static</span> <a class="code" href="classAsync_1_1AudioEncoder.html" title="Base class for an audio encoder.">AudioEncoder</a> *<a class="code" href="classAsync_1_1AudioEncoder.html#ab49653013604516d91628a57fa0b9cc8">create</a>(<span class="keyword">const</span> std::string &amp;<a class="code" href="classAsync_1_1AudioEncoder.html#a7fd35e784de1bd8221f004c4d1d78685" title="Get the name of the codec.">name</a>);
<a name="l00117"></a>00117     
<a name="l00121"></a><a class="code" href="classAsync_1_1AudioEncoder.html#a112efa76f96969ce179d9ec7ff92a03f">00121</a>     <a class="code" href="classAsync_1_1AudioEncoder.html#a112efa76f96969ce179d9ec7ff92a03f" title="Default constuctor.">AudioEncoder</a>(<span class="keywordtype">void</span>) {}
<a name="l00122"></a>00122   
<a name="l00126"></a><a class="code" href="classAsync_1_1AudioEncoder.html#add4a05130fefde0194d97ecdc6d4f61e">00126</a>     <a class="code" href="classAsync_1_1AudioEncoder.html#add4a05130fefde0194d97ecdc6d4f61e" title="Destructor.">~AudioEncoder</a>(<span class="keywordtype">void</span>) {}
<a name="l00127"></a>00127   
<a name="l00132"></a>00132     <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classAsync_1_1AudioEncoder.html#a7fd35e784de1bd8221f004c4d1d78685" title="Get the name of the codec.">name</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
<a name="l00133"></a>00133     
<a name="l00139"></a><a class="code" href="classAsync_1_1AudioEncoder.html#a5c55cd8fb697f74a5ecfcaaab34fa7d9">00139</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioEncoder.html#a5c55cd8fb697f74a5ecfcaaab34fa7d9" title="Set an option for the encoder.">setOption</a>(<span class="keyword">const</span> std::string &amp;name, <span class="keyword">const</span> std::string &amp;value) {}
<a name="l00140"></a>00140 
<a name="l00144"></a><a class="code" href="classAsync_1_1AudioEncoder.html#a188051794770e31857dd9d840805803b">00144</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioEncoder.html#a188051794770e31857dd9d840805803b" title="Print codec parameter settings.">printCodecParams</a>(<span class="keywordtype">void</span>) {}
<a name="l00145"></a>00145     
<a name="l00149"></a><a class="code" href="classAsync_1_1AudioEncoder.html#a5aa292489f1d8486f6078647c255d093">00149</a>     <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioEncoder.html#a5aa292489f1d8486f6078647c255d093" title="Call this function when all encoded samples have been flushed.">allEncodedSamplesFlushed</a>(<span class="keywordtype">void</span>) { <a class="code" href="classAsync_1_1AudioSink.html#a2548622eb5c52ef80f3bd297f290be3c" title="Tell the source that all samples have been flushed.">sourceAllSamplesFlushed</a>(); }
<a name="l00150"></a>00150     
<a name="l00159"></a><a class="code" href="classAsync_1_1AudioEncoder.html#a89a1b3e1994988757a837ecdf6aa91f8">00159</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classAsync_1_1AudioEncoder.html#a89a1b3e1994988757a837ecdf6aa91f8" title="Tell the sink to flush the previously written samples.">flushSamples</a>(<span class="keywordtype">void</span>) { <a class="code" href="classAsync_1_1AudioEncoder.html#a96ef1a0110974e2aa5a96d90567b4c65" title="This signal is emitted when the source calls flushSamples.">flushEncodedSamples</a>(); }
<a name="l00160"></a>00160     
<a name="l00166"></a><a class="code" href="classAsync_1_1AudioEncoder.html#af51689a22c0f9b1edc68e1183ba44965">00166</a>     SigC::Signal2&lt;void,const void *,int&gt; <a class="code" href="classAsync_1_1AudioEncoder.html#af51689a22c0f9b1edc68e1183ba44965" title="A signal emitted when encoded samples are available.">writeEncodedSamples</a>;
<a name="l00167"></a>00167     
<a name="l00171"></a><a class="code" href="classAsync_1_1AudioEncoder.html#a96ef1a0110974e2aa5a96d90567b4c65">00171</a>     SigC::Signal0&lt;void&gt; <a class="code" href="classAsync_1_1AudioEncoder.html#a96ef1a0110974e2aa5a96d90567b4c65" title="This signal is emitted when the source calls flushSamples.">flushEncodedSamples</a>;
<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     <a class="code" href="classAsync_1_1AudioEncoder.html#a112efa76f96969ce179d9ec7ff92a03f" title="Default constuctor.">AudioEncoder</a>(<span class="keyword">const</span> <a class="code" href="classAsync_1_1AudioEncoder.html" title="Base class for an audio encoder.">AudioEncoder</a>&amp;);
<a name="l00178"></a>00178     <a class="code" href="classAsync_1_1AudioEncoder.html" title="Base class for an audio encoder.">AudioEncoder</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classAsync_1_1AudioEncoder.html" title="Base class for an audio encoder.">AudioEncoder</a>&amp;);
<a name="l00179"></a>00179     
<a name="l00180"></a>00180 };  <span class="comment">/* class AudioEncoder */</span>
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 
<a name="l00183"></a>00183 } <span class="comment">/* namespace */</span>
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 <span class="preprocessor">#endif </span><span class="comment">/* ASYNC_AUDIO_ENCODER_INCLUDED */</span>
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 
<a name="l00188"></a>00188 
<a name="l00189"></a>00189 <span class="comment">/*</span>
<a name="l00190"></a>00190 <span class="comment"> * This file has not been truncated</span>
<a name="l00191"></a>00191 <span class="comment"> */</span>
<a name="l00192"></a>00192 
</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>