aflibaudiobwfilter_8h-source.html

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

HTML
124
字号
<!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>aflibAudioBWFilter.h Source File</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>aflibAudioBWFilter.h</h1><a href="aflibAudioBWFilter_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>00002 <font class="comment">This file was derived from the following work listed below. It</font>00003 <font class="comment">was modified for this class by Bruce W. Forsberg (forsberg@tns.net).</font>00004 <font class="comment"></font>00005 <font class="comment">Modified from spkit software. Files</font>00006 <font class="comment">butterwo</font>00007 <font class="comment">bwbandpa</font>00008 <font class="comment">bwbandre</font>00009 <font class="comment">bwhighpa</font>00010 <font class="comment">bwlowpas</font>00011 <font class="comment"></font>00012 <font class="comment"></font>00013 <font class="comment">    Sound Processing Kit - A C++ Class Library for Audio Signal Processing</font>00014 <font class="comment">    Copyright (C) 1995-1998 Kai Lassfolk</font>00015 <font class="comment"> </font>00016 <font class="comment">    This library is free software; you can redistribute it and/or</font>00017 <font class="comment">    modify it under the terms of the GNU Library General Public</font>00018 <font class="comment">    License as published by the Free Software Foundation; either</font>00019 <font class="comment">    version 2 of the License, or (at your option) any later version.</font>00020 <font class="comment"> </font>00021 <font class="comment">    This library is distributed in the hope that it will be useful,</font>00022 <font class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</font>00023 <font class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</font>00024 <font class="comment">    Library General Public License for more details.</font>00025 <font class="comment"> </font>00026 <font class="comment">    You should have received a copy of the GNU Library General Public</font>00027 <font class="comment">    License along with this library; if not, write to the Free</font>00028 <font class="comment">    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</font>00029 <font class="comment">*/</font>00030 00031 00032 <font class="preprocessor">#ifndef _AFLIBAUDIOBWFILTER_H_</font>00033 <font class="preprocessor"></font><font class="preprocessor">#define _AFLIBAUDIOBWFILTER_H_</font>00034 <font class="preprocessor"></font>00035 <font class="preprocessor">#ifdef HAVE_CONFIG_H</font>00036 <font class="preprocessor"></font><font class="preprocessor">#include &lt;config.h&gt;</font>00037 <font class="preprocessor">#endif</font>00038 <font class="preprocessor"></font>00039 <font class="preprocessor">#include "<a class="code" href="aflibAudio_8h.html">aflibAudio.h</a>"</font>00040 00041 00049 <font class="keyword">class </font><a class="code" href="classaflibAudioBWFilter.html">aflibAudioBWFilter</a>: <font class="keyword">public</font> <a class="code" href="classaflibAudio.html">aflibAudio</a> {00050 00051 <font class="keyword">public</font>:00052 <a name="l00053"></a><a class="code" href="classaflibAudioBWFilter.html#s4">00053</a>    <font class="keyword">enum</font> <a class="code" href="classaflibAudioBWFilter.html#s4">AFLIB_BWFILTER_MODE</a>00054    {00055       <a class="code" href="classaflibAudioBWFilter.html#s4s0">LOW_PASS</a>,00056       <a class="code" href="classaflibAudioBWFilter.html#s4s1">HIGH_PASS</a>,00057       <a class="code" href="classaflibAudioBWFilter.html#s4s2">BAND_PASS</a>,00058       <a class="code" href="classaflibAudioBWFilter.html#s4s3">BAND_REJECT</a>00059    };00060 00061    <font class="comment">// Available contructors and destructors</font>00062    <a class="code" href="classaflibAudioBWFilter.html#a0">aflibAudioBWFilter</a>(00063       <a class="code" href="classaflibAudio.html">aflibAudio</a>&amp; audio,00064       <a class="code" href="classaflibAudioBWFilter.html#s4">aflibAudioBWFilter::AFLIB_BWFILTER_MODE</a> mode,00065       <font class="keywordtype">double</font>              freq,00066       <font class="keywordtype">double</font>              bw);00067 00068    <a class="code" href="classaflibAudioBWFilter.html#a1">~aflibAudioBWFilter</a>();00069 00070    <font class="keywordtype">void</font>00071    <a class="code" href="classaflibAudioBWFilter.html#a2">setParameters</a>(00072       <a class="code" href="classaflibAudioBWFilter.html#s4">aflibAudioBWFilter::AFLIB_BWFILTER_MODE</a> mode,00073       <font class="keywordtype">double</font>              freq,00074       <font class="keywordtype">double</font>              bw);00075 00076    <font class="keywordtype">void</font>00077    <a class="code" href="classaflibAudioBWFilter.html#a3">setInputConfig</a>(<font class="keyword">const</font> <a class="code" href="classaflibConfig.html">aflibConfig</a>&amp; cfg);00078 00079    <a class="code" href="aflib_8h.html#a33">aflibStatus</a>00080    <a class="code" href="classaflibAudioBWFilter.html#a4">compute_segment</a>(00081       list&lt;aflibData *&gt;&amp; data,00082       <font class="keywordtype">long</font> <font class="keywordtype">long</font> position = -1) ;00083 00085    <font class="keyword">const</font> <font class="keywordtype">char</font> *<a name="l00086"></a><a class="code" href="classaflibAudioBWFilter.html#a5">00086</a>    <a class="code" href="classaflibAudioBWFilter.html#a5">getName</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="stringliteral">"aflibAudioBWFilter"</font>;};00087 00088    <font class="keywordtype">bool</font>00089    <a class="code" href="classaflibAudioBWFilter.html#a6">isDataSizeSupported</a>(<a class="code" href="aflib_8h.html#a30">aflib_data_size</a> size);00090 00091 <font class="keyword">private</font>:00092 00093    <a class="code" href="classaflibAudioBWFilter.html#a0">aflibAudioBWFilter</a>();00094 00095    <a class="code" href="classaflibAudioBWFilter.html#a0">aflibAudioBWFilter</a>(<font class="keyword">const</font> <a class="code" href="classaflibAudioBWFilter.html">aflibAudioBWFilter</a>&amp; op);00096 00097    <font class="keyword">const</font> <a class="code" href="classaflibAudioBWFilter.html">aflibAudioBWFilter</a>&amp;00098    operator=(<font class="keyword">const</font> <a class="code" href="classaflibAudioBWFilter.html">aflibAudioBWFilter</a>&amp; op);00099 00100    <font class="keywordtype">void</font>00101    allocateMemory();00102 00103 <a class="code" href="classaflibAudioBWFilter.html#s4">aflibAudioBWFilter::AFLIB_BWFILTER_MODE</a>   _mode;00104 <font class="keywordtype">double</font>                                    _freq;00105 <font class="keywordtype">double</font>                                    _bw;00106 <font class="keywordtype">double</font>                                    _C, _D;00107 <font class="keywordtype">double</font>                                    _a[3], _b[2];00108 <font class="keywordtype">double</font>                                   *_buf_x0;00109 <font class="keywordtype">double</font>                                   *_buf_x1;00110 <font class="keywordtype">double</font>                                   *_buf_y0;00111 <font class="keywordtype">double</font>                                   *_buf_y1;00112 <font class="keywordtype">int</font>                                       _chan;00113 00114 };00115 00116 00117 <font class="preprocessor">#endif</font></pre></div><hr><address align="right"><small>Generated on Wed May 8 20:51:05 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 + -
显示快捷键?