aflibaudiofile_8h-source.html

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

HTML
146
字号
<!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>aflibAudioFile.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>aflibAudioFile.h</h1><a href="aflibAudioFile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>00002 <font class="comment"> * Copyright: (C) 1999-2001 Bruce W. Forsberg</font>00003 <font class="comment"> *</font>00004 <font class="comment"> *   This library is free software; you can redistribute it and/or</font>00005 <font class="comment"> *   modify it under the terms of the GNU Lesser General Public</font>00006 <font class="comment"> *   License as published by the Free Software Foundation; either</font>00007 <font class="comment"> *   version 2.1 of the License, or any later version.</font>00008 <font class="comment"> *</font>00009 <font class="comment"> *   This library is distributed in the hope that it will be useful,</font>00010 <font class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of</font>00011 <font class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</font>00012 <font class="comment"> *   Lesser General Public License for more details.</font>00013 <font class="comment"> *</font>00014 <font class="comment"> *   You should have received a copy of the GNU Lesser General Public</font>00015 <font class="comment"> *   License along with this library; if not, write to the Free Software</font>00016 <font class="comment"> *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA</font>00017 <font class="comment"> *</font>00018 <font class="comment"> *   Bruce Forsberg  forsberg@tns.net</font>00019 <font class="comment"> *</font>00020 <font class="comment"> */</font>00021 00022 00023 <font class="preprocessor">#ifndef _AFLIBAUDIOFILE_H</font>00024 <font class="preprocessor"></font><font class="preprocessor">#define _AFLIBAUDIOFILE_H</font>00025 <font class="preprocessor"></font>00026 <font class="preprocessor">#ifdef HAVE_CONFIG_H</font>00027 <font class="preprocessor"></font><font class="preprocessor">#include &lt;config.h&gt;</font>00028 <font class="preprocessor">#endif</font>00029 <font class="preprocessor"></font>00030 <font class="preprocessor">#include "<a class="code" href="aflib_8h.html">aflib.h</a>"</font>00031 <font class="preprocessor">#include "<a class="code" href="aflibAudio_8h.html">aflibAudio.h</a>"</font>00032 <font class="preprocessor">#include &lt;string&gt;</font>00033 00034 <font class="keyword">using</font> std::string;00035 00036 00055 <font class="keyword">class </font><a class="code" href="classaflibConfig.html">aflibConfig</a>;00056 <font class="keyword">class </font><a class="code" href="classaflibFile.html">aflibFile</a>;00057 00058 <font class="keyword">class </font><a class="code" href="classaflibAudioFile.html">aflibAudioFile</a> : <font class="keyword">public</font> <a class="code" href="classaflibAudio.html">aflibAudio</a> {00059 00060 <font class="keyword">public</font>:00061 00062    <font class="comment">// Constructor for a node with no parent (ie start of a chain)</font>00063    <a class="code" href="classaflibAudioFile.html#a0">aflibAudioFile</a>(00064       <a class="code" href="aflib_8h.html#a34">aflibFileType</a> type_enum,00065       <font class="keyword">const</font> string&amp; file,00066       <a class="code" href="classaflibConfig.html">aflibConfig</a>* cfg = NULL,00067       <a class="code" href="aflib_8h.html#a33">aflibStatus</a>* status = NULL);00068 00069    <font class="comment">// Constructor for a node with no parent (ie start of a chain)</font>00070    <a class="code" href="classaflibAudioFile.html#a0">aflibAudioFile</a>(00071       <font class="keyword">const</font> string&amp; format,00072       <font class="keyword">const</font> string&amp; file,00073       <a class="code" href="classaflibConfig.html">aflibConfig</a>* cfg = NULL,00074       <a class="code" href="aflib_8h.html#a33">aflibStatus</a>* status = NULL);00075 00076    <font class="comment">// Constructor for a node with a parent</font>00077    <a class="code" href="classaflibAudioFile.html#a0">aflibAudioFile</a>(00078       <a class="code" href="classaflibAudio.html">aflibAudio</a>&amp; audio,00079       <a class="code" href="aflib_8h.html#a34">aflibFileType</a> type_enum,00080       <font class="keyword">const</font> string&amp; file,00081       <a class="code" href="classaflibConfig.html">aflibConfig</a>* cfg = NULL,00082       <a class="code" href="aflib_8h.html#a33">aflibStatus</a>* status = NULL);00083 00084    <font class="comment">// Constructor for a node with a parent</font>00085    <a class="code" href="classaflibAudioFile.html#a0">aflibAudioFile</a>(00086       <a class="code" href="classaflibAudio.html">aflibAudio</a>&amp; audio,00087       <font class="keyword">const</font> string&amp; format,00088       <font class="keyword">const</font> string&amp; file,00089       <a class="code" href="classaflibConfig.html">aflibConfig</a>* cfg = NULL,00090       <a class="code" href="aflib_8h.html#a33">aflibStatus</a>* status = NULL);00091 00092    <a class="code" href="classaflibAudioFile.html#a4">~aflibAudioFile</a>();00093 00094    <a class="code" href="aflib_8h.html#a33">aflibStatus</a>00095    <a class="code" href="classaflibAudioFile.html#a5">compute_segment</a>(00096       list&lt;aflibData *&gt;&amp; data,00097       <font class="keywordtype">long</font> <font class="keywordtype">long</font> position = -1) ;00098 00099    <font class="keywordtype">bool</font>00100    <a class="code" href="classaflibAudioFile.html#a6">setItem</a>(00101       <font class="keyword">const</font> <font class="keywordtype">char</font> * item,00102       <font class="keyword">const</font> <font class="keywordtype">void</font> * value);00103 00104    <font class="keywordtype">bool</font>00105    <a class="code" href="classaflibAudioFile.html#a7">getItem</a>(00106       <font class="keyword">const</font> <font class="keywordtype">char</font> * item,00107       <font class="keywordtype">void</font> * value);00108 00110    <font class="keyword">const</font> <font class="keywordtype">char</font> *<a name="l00111"></a><a class="code" href="classaflibAudioFile.html#a8">00111</a>    <a class="code" href="classaflibAudioFile.html#a8">getName</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="stringliteral">"aflibAudioFile"</font>;};00112 00113    <font class="keywordtype">void</font>00114    <a class="code" href="classaflibAudioFile.html#a9">setInputConfig</a>(<font class="keyword">const</font> <a class="code" href="classaflibConfig.html">aflibConfig</a>&amp; cfg);00115  00116    <font class="keyword">const</font> <a class="code" href="classaflibConfig.html">aflibConfig</a>&amp;00117    <a class="code" href="classaflibAudioFile.html#a10">getInputConfig</a>() <font class="keyword">const</font>;00118  00119    <font class="keywordtype">void</font>00120    <a class="code" href="classaflibAudioFile.html#a11">setOutputConfig</a>(<font class="keyword">const</font> <a class="code" href="classaflibConfig.html">aflibConfig</a>&amp; cfg);00121  00122    <font class="keyword">const</font> <a class="code" href="classaflibConfig.html">aflibConfig</a>&amp;00123    <a class="code" href="classaflibAudioFile.html#a12">getOutputConfig</a>() <font class="keyword">const</font>;00124 00125    <font class="keyword">const</font> string&amp;00126    <a class="code" href="classaflibAudioFile.html#a13">getFormat</a>() <font class="keyword">const</font>;00127 00128    <font class="keywordtype">bool</font>00129    <a class="code" href="classaflibAudioFile.html#a14">isDataSizeSupported</a>(<a class="code" href="aflib_8h.html#a30">aflib_data_size</a> size);00130  00131    <font class="keywordtype">bool</font>00132    <a class="code" href="classaflibAudioFile.html#a15">isEndianSupported</a>(<a class="code" href="aflib_8h.html#a31">aflib_data_endian</a> end);00133  00134    <font class="keywordtype">bool</font>00135    <a class="code" href="classaflibAudioFile.html#a16">isSampleRateSupported</a>(<font class="keywordtype">int</font>&amp; rate);00136 00137    <font class="keywordtype">bool</font>00138    <a class="code" href="classaflibAudioFile.html#a17">isChannelsSupported</a>(<font class="keywordtype">int</font>&amp; channels);00139 00140 <font class="keyword">protected</font>:00141 00142 <font class="keyword">private</font>:00143 00144 <a class="code" href="classaflibFile.html">aflibFile</a>  *  _file_object;00145 <font class="keywordtype">bool</font>       _has_parent;00146 00147 };00148 00149 00150 <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 + -
显示快捷键?