aflibaudioedit_8h-source.html

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

HTML
189
字号
<!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>aflibAudioEdit.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>aflibAudioEdit.h</h1><a href="aflibAudioEdit_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 _AFLIBAUDIOEDIT_H_</font>00024 <font class="preprocessor"></font><font class="preprocessor">#define _AFLIBAUDIOEDIT_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 &lt;list&gt;</font>00031 <font class="preprocessor">#include &lt;set&gt;</font>00032 <font class="keyword">using</font> std::set;00033 00034 <font class="preprocessor">#include "<a class="code" href="aflibAudio_8h.html">aflibAudio.h</a>"</font>00035 <font class="preprocessor">#include "<a class="code" href="aflibEditClip_8h.html">aflibEditClip.h</a>"</font>00036 00122 <font class="keyword">class </font><a class="code" href="classaflibAudioEdit.html">aflibAudioEdit</a> : <font class="keyword">public</font> <a class="code" href="classaflibAudio.html">aflibAudio</a> {00123 00124 <font class="keyword">public</font>:00125 00126    <font class="comment">// Available contructors and destructors</font>00127    <a class="code" href="classaflibAudioEdit.html#a0">aflibAudioEdit</a>(<a class="code" href="classaflibAudio.html">aflibAudio</a>&amp; audio);00128    <a class="code" href="classaflibAudioEdit.html#a1">~aflibAudioEdit</a>();00129 00130    <font class="comment">// Add and remove segments</font>00131    <font class="keywordtype">void</font>00132    <a class="code" href="classaflibAudioEdit.html#a2">addSegment</a>(00133       <font class="keywordtype">int</font>  input,00134       <font class="keywordtype">long</font> <font class="keywordtype">long</font> input_start_position,00135       <font class="keywordtype">long</font> <font class="keywordtype">long</font> input_stop_position,00136       <font class="keywordtype">long</font> <font class="keywordtype">long</font> output_insert_position,00137       <font class="keywordtype">double</font>    factor = 1.0);00138 00139    <font class="keywordtype">void</font>00140    <a class="code" href="classaflibAudioEdit.html#a2">addSegment</a>(00141       <font class="keywordtype">int</font>  input,00142       <font class="keywordtype">double</font> input_start_seconds,00143       <font class="keywordtype">double</font> input_stop_seconds,00144       <font class="keywordtype">double</font> output_insert_seconds,00145       <font class="keywordtype">double</font> factor = 1.0);00146 00147    <font class="keywordtype">void</font>00148    <a class="code" href="classaflibAudioEdit.html#a4">removeSegment</a>(<font class="keywordtype">int</font> seg_num);00149 00150    <font class="keywordtype">void</font>00151    <a class="code" href="classaflibAudioEdit.html#a4">removeSegment</a>(00152       <font class="keywordtype">long</font> <font class="keywordtype">long</font> output_start_position,00153       <font class="keywordtype">long</font> <font class="keywordtype">long</font> output_stop_position);00154 00155    <font class="keywordtype">void</font>00156    <a class="code" href="classaflibAudioEdit.html#a4">removeSegment</a>(00157       <font class="keywordtype">double</font> output_start_seconds,00158       <font class="keywordtype">double</font> output_stop_seconds);00159 00160    <font class="keywordtype">void</font>00161    <a class="code" href="classaflibAudioEdit.html#a7">removeSegmentsFromInput</a>(<font class="keywordtype">int</font> input);00162 00163    <font class="comment">// Obtain information</font>00164    <font class="keywordtype">int</font>00165    <a class="code" href="classaflibAudioEdit.html#a8">getNumberOfSegments</a>();00166 00167    <font class="keywordtype">void</font>00168    <a class="code" href="classaflibAudioEdit.html#a9">getSegment</a>(00169       <font class="keywordtype">int</font> segment_number,00170       <font class="keywordtype">int</font>&amp;  input,00171       <font class="keywordtype">long</font> <font class="keywordtype">long</font>&amp; input_start_position,00172       <font class="keywordtype">long</font> <font class="keywordtype">long</font>&amp; input_stop_position,00173       <font class="keywordtype">long</font> <font class="keywordtype">long</font>&amp; output_start_position,00174       <font class="keywordtype">long</font> <font class="keywordtype">long</font>&amp; output_stop_position,00175       <font class="keywordtype">double</font>&amp;    factor);00176 00177    <font class="keywordtype">void</font>00178    <a class="code" href="classaflibAudioEdit.html#a9">getSegment</a>(00179       <font class="keywordtype">int</font> segment_number,00180       <font class="keywordtype">int</font>&amp;  input,00181       <font class="keywordtype">double</font>&amp; input_start_seconds,00182       <font class="keywordtype">double</font>&amp; input_stop_seconds,00183       <font class="keywordtype">double</font>&amp; output_start_seconds,00184       <font class="keywordtype">double</font>&amp; output_stop_seconds,00185       <font class="keywordtype">double</font>&amp; factor);00186 00187    <font class="comment">// Perform Undo / Redo of an audio edit</font>00188    <a class="code" href="aflib_8h.html#a35">aflibUndoRedo</a>00189    <a class="code" href="classaflibAudioEdit.html#a11">getUndoRedoStatus</a>() <font class="keyword">const</font>;00190 00191    <font class="keywordtype">void</font>00192    <a class="code" href="classaflibAudioEdit.html#a12">performUndoRedo</a>();00193 00194    <a class="code" href="aflib_8h.html#a33">aflibStatus</a>00195    <a class="code" href="classaflibAudioEdit.html#a13">compute_segment</a>(00196       list&lt;aflibData *&gt;&amp; data,00197       <font class="keywordtype">long</font> <font class="keywordtype">long</font> position = -1) ;00198 00199    <a class="code" href="classaflibData.html">aflibData</a> *00200    <a class="code" href="classaflibAudioEdit.html#a14">process</a>(00201       <a class="code" href="aflib_8h.html#a33">aflibStatus</a>&amp; ret_status,00202       <font class="keywordtype">long</font> <font class="keywordtype">long</font> position,00203       <font class="keywordtype">int</font>&amp; num_samples,00204       <font class="keywordtype">bool</font> free_memory = TRUE) ;00205 00207    <font class="keyword">const</font> <font class="keywordtype">char</font> *<a name="l00208"></a><a class="code" href="classaflibAudioEdit.html#a15">00208</a>    <a class="code" href="classaflibAudioEdit.html#a15">getName</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="stringliteral">"aflibAudioEdit"</font>;};00209 00210    <font class="comment">// Callbacks from afChain</font>00211    <font class="keywordtype">void</font>00212    <a class="code" href="classaflibAudioEdit.html#a16">parentWasDestroyed</a>(<font class="keywordtype">int</font> parent_id);00213 00214    <font class="keywordtype">void</font>00215    <a class="code" href="classaflibAudioEdit.html#a17">parentWasAdded</a>(<font class="keywordtype">int</font> parent_id) ;00216 00217    <font class="keywordtype">void</font>00218    <a class="code" href="classaflibAudioEdit.html#a18">setInputConfig</a>(<font class="keyword">const</font> <a class="code" href="classaflibConfig.html">aflibConfig</a>&amp; cfg);00219 00220    <font class="keywordtype">bool</font>00221    <a class="code" href="classaflibAudioEdit.html#a19">isDataSizeSupported</a>(<a class="code" href="aflib_8h.html#a30">aflib_data_size</a> size);00222  00223    <font class="keywordtype">bool</font>00224    <a class="code" href="classaflibAudioEdit.html#a20">isEndianSupported</a>(<a class="code" href="aflib_8h.html#a31">aflib_data_endian</a> end);00225  00226    <font class="keywordtype">bool</font>00227    <a class="code" href="classaflibAudioEdit.html#a21">isSampleRateSupported</a>(<font class="keywordtype">int</font>&amp; rate);00228 00229    <font class="keywordtype">bool</font>00230    <a class="code" href="classaflibAudioEdit.html#a22">isChannelsSupported</a>(<font class="keywordtype">int</font>&amp; channels);00231 00232 <font class="keyword">private</font>:00233 00234    <a class="code" href="classaflibAudioEdit.html#a0">aflibAudioEdit</a>();00235 00236    <a class="code" href="classaflibAudioEdit.html#a0">aflibAudioEdit</a>(<font class="keyword">const</font> <a class="code" href="classaflibAudioEdit.html">aflibAudioEdit</a>&amp; op);00237 00238    <font class="keyword">const</font> <a class="code" href="classaflibAudioEdit.html">aflibAudioEdit</a>&amp;00239    operator=(<font class="keyword">const</font> <a class="code" href="classaflibAudioEdit.html">aflibAudioEdit</a>&amp; op);00240 00241    <font class="keywordtype">void</font>00242    printClips();00243 00244    <font class="keywordtype">void</font>00245    recomputeConfig();00246 00247    <font class="comment">// Add and remove inputs</font>00248    <font class="keywordtype">void</font>00249    addInput(<font class="keywordtype">int</font> input);00250 00251    <font class="keywordtype">void</font>00252    removeInput(<font class="keywordtype">int</font> input);00253 00254 list&lt;int&gt;  _input_array;00255 set&lt; aflibEditClip, less &lt; aflibEditClip &gt; &gt; _clip_array;00256 00257 };00258 00259 00260 <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 + -
显示快捷键?