classaflibaudiospectrum.html

来自「一个共享源码的音频库5(doc 文档)」· HTML 代码 · 共 449 行 · 第 1/2 页

HTML
449
字号
<!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>aflibAudioSpectrum 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>aflibAudioSpectrum  Class Reference</h1>Audio spectrum display and power meter class. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="aflibAudioSpectrum_8h-source.html">aflibAudioSpectrum.h</a>&gt;</code><p><p>Inheritance diagram for aflibAudioSpectrum:<p><center><img src="classaflibAudioSpectrum.png" usemap="#aflibAudioSpectrum_map" border="0"></center><map name="aflibAudioSpectrum_map"><area href="classaflibAudio.html" alt="aflibAudio" shape="rect" coords="66,56,188,80"><area href="classaflibChain.html" alt="aflibChain" shape="rect" coords="0,0,122,24"><area href="classaflibMemCache.html" alt="aflibMemCache" shape="rect" coords="132,0,254,24"></map><a href="classaflibAudioSpectrum-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><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="classaflibAudioSpectrum.html#a0">aflibAudioSpectrum</a> (<a class="el" href="classaflibAudio.html">aflibAudio</a> &amp;audio)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Constuctor with an audio parent.</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="classaflibAudioSpectrum.html#a1">~aflibAudioSpectrum</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>bool&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioSpectrum.html#a2">setParameters</a> (int num_samples, int resp_per_sec, int channels)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Sets parameters for the audio spectrum class.</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="classaflibAudioSpectrum.html#a3">setPowerMeterCallback</a> (<a class="el" href="aflibAudioSpectrum_8h.html#a1">powermeter_callback</a> func_ptr)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Enables and disables power meter callback.</em> <a href="#a3">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="classaflibAudioSpectrum.html#a4">setAudioSpectrumCallback</a> (<a class="el" href="aflibAudioSpectrum_8h.html#a2">spectrum_callback</a> func_ptr)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Enables and disables audio spectrum callback.</em> <a href="#a4">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="classaflibAudioSpectrum.html#a5">setInputConfig</a> (const <a class="el" href="classaflibConfig.html">aflibConfig</a> &amp;cfg)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Sets the input audio data configuration of an object.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="aflib_8h.html#a33">aflibStatus</a>&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioSpectrum.html#a6">compute_segment</a> (list&lt; <a class="el" href="classaflibData.html">aflibData</a> * &gt; &amp;data, long long position=-1)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Work function, must be implemented by derived class.</em> <a href="#a6">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="classaflibAudioSpectrum.html#a7">getName</a> () const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Returns the name of the derived class.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr><tr><td colspan=2><br><h2>Protected Methods</h2></td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioSpectrum.html#b0">setPowerMeter</a> (double *)</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioSpectrum.html#b1">setAudioSpectrum</a> (int, double *)</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioSpectrum.html#n0">_pm</a></td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classaflibAudioSpectrum.html#n1">_spectrum</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Audio spectrum display and power meter class.<p>This is a class that is derived from <a class="el" href="classaflibAudio.html">aflibAudio</a> so that it can be put in a chain. It allows the user to display a power meter (ie signal strength) or a spectrum display. The number of elements in the spectrum display is changeable. The user can have either or both at the same time. It also provides the ability to change the number of updates that occur. It also supports more than one channel. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="aflibAudioSpectrum::aflibAudioSpectrum"></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"> aflibAudioSpectrum::aflibAudioSpectrum </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="mdname1" valign="top" nowrap>&nbsp; <em>audio</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>Constuctor with an audio parent.<p>This will setup for 4 responses per second and 16 samples with 1 channel. No callbacks are enabled.     </td>  </tr></table><a name="a1" doxytag="aflibAudioSpectrum::~aflibAudioSpectrum"></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"> aflibAudioSpectrum::~aflibAudioSpectrum </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="a6" doxytag="aflibAudioSpectrum::compute_segment"></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"> <a class="el" href="aflib_8h.html#a33">aflibStatus</a> aflibAudioSpectrum::compute_segment </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">list&lt; <a class="el" href="classaflibData.html">aflibData</a> * &gt; &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>data</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>long long&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>position</em> = -1</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Work function, must be implemented by derived class.<p><p>Reimplemented from <a class="el" href="classaflibAudio.html#a12">aflibAudio</a>.    </td>  </tr></table><a name="a7" doxytag="aflibAudioSpectrum::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* aflibAudioSpectrum::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="classaflibAudio.html#a11">aflibAudio</a>.    </td>  </tr></table><a name="b1" doxytag="aflibAudioSpectrum::setAudioSpectrum"></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 aflibAudioSpectrum::setAudioSpectrum </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap>&nbsp;, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>double *&nbsp;</td>          <td class="mdname" nowrap>&nbsp;</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table>

⌨️ 快捷键说明

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