📄 aflibsoxfile_8h-source.html
字号:
<!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>aflibSoxFile.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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>aflibSoxFile.h</h1><a href="aflibSoxFile_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) 2000 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 00030 <font class="preprocessor">#ifndef _AFLIBSOXFILE_H</font>00031 <font class="preprocessor"></font><font class="preprocessor">#define _AFLIBSOXFILE_H</font>00032 <font class="preprocessor"></font>00033 <font class="preprocessor">#ifdef HAVE_CONFIG_H</font>00034 <font class="preprocessor"></font><font class="preprocessor">#include <config.h></font>00035 <font class="preprocessor">#endif</font>00036 <font class="preprocessor"></font>00037 00038 <font class="preprocessor">#include <map></font>00039 <font class="preprocessor">#include <list></font>00040 00041 <font class="preprocessor">#include "<a class="code" href="aflibFile_8h.html">aflibFile.h</a>"</font>00042 <font class="preprocessor">#include <st.h></font>00043 00044 <font class="keyword">class </font><a class="code" href="classaflibFileItem.html">aflibFileItem</a>;00045 <font class="keyword">class </font><a class="code" href="classaflibSoxFile.html">aflibSoxFile</a> : <font class="keyword">public</font> <a class="code" href="classaflibFile.html">aflibFile</a> {00046 00047 <font class="keyword">public</font>:00048 00049 <a class="code" href="classaflibSoxFile.html#a0">aflibSoxFile</a>();00050 00051 <a class="code" href="classaflibSoxFile.html#a1">~aflibSoxFile</a>();00052 00053 00054 <a class="code" href="aflib_8h.html#a33">aflibStatus</a>00055 <a class="code" href="classaflibSoxFile.html#a2">afopen</a>(00056 <font class="keyword">const</font> <font class="keywordtype">char</font> * file,00057 <a class="code" href="classaflibConfig.html">aflibConfig</a>* cfg);00058 00059 <a class="code" href="aflib_8h.html#a33">aflibStatus</a>00060 <a class="code" href="classaflibSoxFile.html#a3">afcreate</a>(00061 <font class="keyword">const</font> <font class="keywordtype">char</font> * file,00062 <font class="keyword">const</font> <a class="code" href="classaflibConfig.html">aflibConfig</a>& cfg);00063 00064 <a class="code" href="aflib_8h.html#a33">aflibStatus</a>00065 <a class="code" href="classaflibSoxFile.html#a4">afread</a>(00066 <a class="code" href="classaflibData.html">aflibData</a>& data,00067 <font class="keywordtype">long</font> <font class="keywordtype">long</font> position = -1);00068 00069 <a class="code" href="aflib_8h.html#a33">aflibStatus</a>00070 <a class="code" href="classaflibSoxFile.html#a5">afwrite</a>(00071 <a class="code" href="classaflibData.html">aflibData</a>& data,00072 <font class="keywordtype">long</font> <font class="keywordtype">long</font> position = -1);00073 00074 <font class="keywordtype">bool</font>00075 <a class="code" href="classaflibSoxFile.html#a6">isDataSizeSupported</a>(<a class="code" href="aflib_8h.html#a30">aflib_data_size</a> size);00076 00077 <font class="keywordtype">bool</font>00078 <a class="code" href="classaflibSoxFile.html#a7">isEndianSupported</a>(<a class="code" href="aflib_8h.html#a31">aflib_data_endian</a> end);00079 00080 <font class="keywordtype">bool</font>00081 <a class="code" href="classaflibSoxFile.html#a8">isSampleRateSupported</a>(<font class="keywordtype">int</font>& rate);00082 00083 <font class="keywordtype">bool</font>00084 <a class="code" href="classaflibSoxFile.html#a9">isChannelsSupported</a>(<font class="keywordtype">int</font>& channels);00085 00086 <font class="comment">/* For getting and setting SOX soundstream struct */</font>00087 <font class="keywordtype">bool</font>00088 <a class="code" href="classaflibSoxFile.html#a10">getItem</a>(00089 <font class="keyword">const</font> <font class="keywordtype">char</font>* item,00090 <font class="keywordtype">void</font>* value);00091 00092 <font class="keyword">private</font>:00093 00094 <font class="keyword">static</font>00095 <font class="keywordtype">int</font> filetype(<font class="keywordtype">int</font> fd);00096 <font class="comment">/*</font>00097 <font class="comment">void</font>00098 <font class="comment">initOptions(aflibOptions& options);</font>00099 <font class="comment">static void</font>00100 <font class="comment">setOptionStrings(aflibOptions& options);</font>00101 <font class="comment">*/</font>00102 <font class="keyword">static</font> <font class="keywordtype">void</font>00103 configToFormat(00104 <font class="keyword">const</font> <a class="code" href="classaflibConfig.html">aflibConfig</a>& cfg,00105 ft_t format00106 );00107 <font class="keyword">static</font> <font class="keywordtype">void</font>00108 formatToConfig(00109 <a class="code" href="classaflibConfig.html">aflibConfig</a>& cfg,00110 <font class="keyword">const</font> ft_t format00111 );00112 00113 <font class="keywordtype">void</font>00114 checkformat(ft_t format){00115 st_checkformat(format);00116 };00117 00118 00119 <font class="keyword">struct </font>st_soundstream _st_format;00120 <font class="keywordtype">bool</font> _write;00121 <font class="keywordtype">long</font> <font class="keywordtype">long</font> _position;00122 00123 };00124 00125 00126 <font class="preprocessor">#endif</font></pre></div><hr><address align="right"><small>Generated on Wed May 8 20:51:07 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -