classaflibaudiostereotomono.html

来自「一个共享源码的音频库5(doc 文档)」· HTML 代码 · 共 266 行

HTML
266
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>aflibAudioStereoToMono class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.15 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</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="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>aflibAudioStereoToMono  Class Reference</h1>Implements mixing a stereo or mono signal to a mono signal. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="aflibAudioStereoToMono_8h-source.html">aflibAudioStereoToMono.h</a>&gt;</code><p><p>Inheritance diagram for aflibAudioStereoToMono:<p><center><img src="classaflibAudioStereoToMono.png" usemap="#aflibAudioStereoToMono_map" border="0"></center><map name="aflibAudioStereoToMono_map"><area href="classaflibAudioMixer.html" alt="aflibAudioMixer" shape="rect" coords="81,112,233,136"><area href="classaflibAudio.html" alt="aflibAudio" shape="rect" coords="81,56,233,80"><area href="classaflibChain.html" alt="aflibChain" shape="rect" coords="0,0,152,24"><area href="classaflibMemCache.html" alt="aflibMemCache" shape="rect" coords="162,0,314,24"></map><a href="classaflibAudioStereoToMono-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Public Types</h2></td></tr><tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioStereoToMono.html#s4">aflib_mix_type</a> { <a class="el" href="classaflibAudioStereoToMono.html#s4s0">AFLIB_MIX_UNDEF</a>, <a class="el" href="classaflibAudioStereoToMono.html#s4s1">AFLIB_MIX_BOTH</a>, <a class="el" href="classaflibAudioStereoToMono.html#s4s2">AFLIB_MIX_CHAN1</a>, <a class="el" href="classaflibAudioStereoToMono.html#s4s3">AFLIB_MIX_CHAN2</a> }</td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioStereoToMono.html#a0">aflibAudioStereoToMono</a> (<a class="el" href="classaflibAudio.html">aflibAudio</a> &amp;audio, <a class="el" href="classaflibAudioStereoToMono.html#s4">aflibAudioStereoToMono::aflib_mix_type</a> mix=AFLIB_MIX_BOTH, int amplitude=100)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Constructor for type of mixing operation.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioStereoToMono.html#a1">~aflibAudioStereoToMono</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Destructor.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioStereoToMono.html#a2">setMixType</a> (<a class="el" href="classaflibAudioStereoToMono.html#s4">aflibAudioStereoToMono::aflib_mix_type</a> mix)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Sets the type of mixing to perform.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioStereoToMono.html#a3">setAmplitude</a> (int amplitude)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Sets the amplitude.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>const char *&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioStereoToMono.html#a4">getName</a> () const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Returns the name of the derived class.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Implements mixing a stereo or mono signal to a mono signal.<p>This class implements converting a stereo or mono signal into a mono signal.  It will output either a mix of both channels 1 and 2 inputs, channel 1, or  channel 2.<p>This class is a convience class derived from <a class="el" href="classaflibAudioMixer.html">aflibAudioMixer</a> since this is a  commonly used operation. It takes either a mono or stereo signal so that the  programmer does not need to worry about the source. <p><hr><h2>Member Enumeration Documentation</h2><a name="s4" doxytag="aflibAudioStereoToMono::aflib_mix_type"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> enum aflibAudioStereoToMono::aflib_mix_type      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Enumeration values:</b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s4s0" doxytag="AFLIB_MIX_UNDEF"></a><em>AFLIB_MIX_UNDEF</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s4s1" doxytag="AFLIB_MIX_BOTH"></a><em>AFLIB_MIX_BOTH</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s4s2" doxytag="AFLIB_MIX_CHAN1"></a><em>AFLIB_MIX_CHAN1</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s4s3" doxytag="AFLIB_MIX_CHAN2"></a><em>AFLIB_MIX_CHAN2</em></em>&nbsp;</td><td></td></tr></table></dl>    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="aflibAudioStereoToMono::aflibAudioStereoToMono"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> aflibAudioStereoToMono::aflibAudioStereoToMono </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classaflibAudio.html">aflibAudio</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>audio</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classaflibAudioStereoToMono.html#s4">aflibAudioStereoToMono::aflib_mix_type</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>mix</em> = AFLIB_MIX_BOTH, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>amplitude</em> = 100</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>Constructor for type of mixing operation.<p>This constructor allows one to mix any input to a mono signal.  It will mix both channels (<a class="el" href="classaflibAudioStereoToMono.html#s4s1">aflibAudioStereoToMono::AFLIB_MIX_BOTH</a>),  or channel 1 (<a class="el" href="classaflibAudioStereoToMono.html#s4s2">aflibAudioStereoToMono::AFLIB_MIX_CHAN1</a>),  or channel 2 (<a class="el" href="classaflibAudioStereoToMono.html#s4s3">aflibAudioStereoToMono::AFLIB_MIX_CHAN2</a>).     </td>  </tr></table><a name="a1" doxytag="aflibAudioStereoToMono::~aflibAudioStereoToMono"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> aflibAudioStereoToMono::~aflibAudioStereoToMono </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Destructor.<p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a4" doxytag="aflibAudioStereoToMono::getName"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> const char* aflibAudioStereoToMono::getName </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [inline, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the name of the derived class.<p><p>Reimplemented from <a class="el" href="classaflibAudioMixer.html#a10">aflibAudioMixer</a>.    </td>  </tr></table><a name="a3" doxytag="aflibAudioStereoToMono::setAmplitude"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void aflibAudioStereoToMono::setAmplitude </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>amplitude</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the amplitude.<p>This function allows one to change the amplitude.  values between 1 and 100 are supported.     </td>  </tr></table><a name="a2" doxytag="aflibAudioStereoToMono::setMixType"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void aflibAudioStereoToMono::setMixType </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classaflibAudioStereoToMono.html#s4">aflibAudioStereoToMono::aflib_mix_type</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>mix</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the type of mixing to perform.<p>This function allows one to change the type of mixing performed.<p>One can select both channels (<a class="el" href="classaflibAudioStereoToMono.html#s4s1">aflibAudioStereoToMono::AFLIB_MIX_BOTH</a>),  or channel 1 (<a class="el" href="classaflibAudioStereoToMono.html#s4s2">aflibAudioStereoToMono::AFLIB_MIX_CHAN1</a>),  or channel 2 (<a class="el" href="classaflibAudioStereoToMono.html#s4s3">aflibAudioStereoToMono::AFLIB_MIX_CHAN2</a>).     </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="aflibAudioStereoToMono_8h-source.html">aflibAudioStereoToMono.h</a><li><a class="el" href="aflibAudioStereoToMono_8cc.html">aflibAudioStereoToMono.cc</a></ul><hr><address align="right"><small>Generated on Wed May 8 20:51:10 2002 for Open Source Audio Library Project by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?