<!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: Async::AudioMixer Class Reference</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 Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><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="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceAsync.html">Async</a>::<a class="el" href="classAsync_1_1AudioMixer.html">AudioMixer</a> </div> </div> <div class="contents"> <h1>Async::AudioMixer Class Reference</h1><!-- doxytag: class="Async::AudioMixer" --><!-- doxytag: inherits="Async::AudioSource" --> <p>A class for mixing audio streams. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="AsyncAudioMixer_8h_source.html">AsyncAudioMixer.h</a>></code></p> <div class="dynheader"> Inheritance diagram for Async::AudioMixer:</div> <div class="dynsection"> <div class="center"> <img src="classAsync_1_1AudioMixer.png" usemap="#Async::AudioMixer_map" alt=""/> <map id="Async::AudioMixer_map" name="Async::AudioMixer_map"> <area href="classAsync_1_1AudioSource.html" alt="Async::AudioSource" shape="rect" coords="0,0,128,24"/> </map> </div> </div> <p><a href="classAsync_1_1AudioMixer-members.html">List of all members.</a></p> <h2>Public Member Functions</h2> <ul> <li><a class="el" href="classAsync_1_1AudioMixer.html#ad216988cc9bed27e1ce2639284d5b33a">AudioMixer</a> (void) <dl class="el"><dd class="mdescRight">Default constuctor. <a href="#ad216988cc9bed27e1ce2639284d5b33a"></a><br/></dl><li><a class="el" href="classAsync_1_1AudioMixer.html#aa674b30be37505c6489a087394adf1c0">~AudioMixer</a> (void) <dl class="el"><dd class="mdescRight">Destructor. <a href="#aa674b30be37505c6489a087394adf1c0"></a><br/></dl><li>void <a class="el" href="classAsync_1_1AudioMixer.html#abc5efbd4a6c74005a39ee0725adead8a">addSource</a> (<a class="el" href="classAsync_1_1AudioSource.html">AudioSource</a> *source) <dl class="el"><dd class="mdescRight">Add an audio source to the mixer. <a href="#abc5efbd4a6c74005a39ee0725adead8a"></a><br/></dl><li>void <a class="el" href="classAsync_1_1AudioMixer.html#a0cd34398d7e92746b5c0bd02ac4779a8">resumeOutput</a> (void) <dl class="el"><dd class="mdescRight">Resume audio output to the sink. <a href="#a0cd34398d7e92746b5c0bd02ac4779a8"></a><br/></dl></ul> <h2>Protected Member Functions</h2> <ul> <li>void <a class="el" href="classAsync_1_1AudioMixer.html#a73881e68d3344fdb4beeef5e1cb565b5">allSamplesFlushed</a> (void) <dl class="el"><dd class="mdescRight">The registered sink has flushed all samples. <a href="#a73881e68d3344fdb4beeef5e1cb565b5"></a><br/></dl></ul> <h2>Friends</h2> <ul> <li>class <a class="el" href="classAsync_1_1AudioMixer.html#abeade28aa3676c9ced9aa087e2224823">MixerSrc</a> </ul> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A class for mixing audio streams. </p> <dl class="author"><dt><b>Author:</b></dt><dd>Tobias Blomberg / SM0SVX </dd></dl> <dl class="date"><dt><b>Date:</b></dt><dd>2007-10-05</dd></dl> <p>This class is used to mix audio streams together. </p> <p>Definition at line <a class="el" href="AsyncAudioMixer_8h_source.html#l00114">114</a> of file <a class="el" href="AsyncAudioMixer_8h_source.html">AsyncAudioMixer.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ad216988cc9bed27e1ce2639284d5b33a"></a><!-- doxytag: member="Async::AudioMixer::AudioMixer" ref="ad216988cc9bed27e1ce2639284d5b33a" args="(void)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Async::AudioMixer::AudioMixer </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Default constuctor. </p> </div> </div> <a class="anchor" id="aa674b30be37505c6489a087394adf1c0"></a><!-- doxytag: member="Async::AudioMixer::~AudioMixer" ref="aa674b30be37505c6489a087394adf1c0" args="(void)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Async::AudioMixer::~AudioMixer </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="abc5efbd4a6c74005a39ee0725adead8a"></a><!-- doxytag: member="Async::AudioMixer::addSource" ref="abc5efbd4a6c74005a39ee0725adead8a" args="(AudioSource *source)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Async::AudioMixer::addSource </td> <td>(</td> <td class="paramtype"><a class="el" href="classAsync_1_1AudioSource.html">AudioSource</a> * </td> <td class="paramname"> <em>source</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Add an audio source to the mixer. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>source</em> </td><td>The audio source to add </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a73881e68d3344fdb4beeef5e1cb565b5"></a><!-- doxytag: member="Async::AudioMixer::allSamplesFlushed" ref="a73881e68d3344fdb4beeef5e1cb565b5" args="(void)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Async::AudioMixer::allSamplesFlushed </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The registered sink has flushed all samples. </p> <p>This function will be called when all samples have been flushed in the registered sink. This function is normally only called from a connected sink object. </p> <p>Reimplemented from <a class="el" href="classAsync_1_1AudioSource.html#a563adf6411eddbd056abf206a12354b6">Async::AudioSource</a>.</p> </div> </div> <a class="anchor" id="a0cd34398d7e92746b5c0bd02ac4779a8"></a><!-- doxytag: member="Async::AudioMixer::resumeOutput" ref="a0cd34398d7e92746b5c0bd02ac4779a8" args="(void)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Async::AudioMixer::resumeOutput </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Resume audio output to the sink. </p> <p>This function will be called when the registered audio sink is ready to accept more samples. This function is normally only called from a connected sink object. </p> <p>Reimplemented from <a class="el" href="classAsync_1_1AudioSource.html#ac187f89a6094ec066dab5b4fd3108754">Async::AudioSource</a>.</p> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="abeade28aa3676c9ced9aa087e2224823"></a><!-- doxytag: member="Async::AudioMixer::MixerSrc" ref="abeade28aa3676c9ced9aa087e2224823" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">friend class MixerSrc<code> [friend]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="AsyncAudioMixer_8h_source.html#l00175">175</a> of file <a class="el" href="AsyncAudioMixer_8h_source.html">AsyncAudioMixer.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="AsyncAudioMixer_8h_source.html">AsyncAudioMixer.h</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <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>