aflibconverter_8h-source.html
来自「一个共享源码的音频库5(doc 文档)」· HTML 代码 · 共 221 行 · 第 1/2 页
HTML
221 行
00134 v >>= scl;00135 <font class="keywordflow">if</font> (v><a class="code" href="aflibConverter_8h.html#a2">MAX_HWORD</a>) {00136 v = <a class="code" href="aflibConverter_8h.html#a2">MAX_HWORD</a>;00137 } <font class="keywordflow">else</font> <font class="keywordflow">if</font> (v < <a class="code" href="aflibConverter_8h.html#a3">MIN_HWORD</a>) {00138 v = <a class="code" href="aflibConverter_8h.html#a3">MIN_HWORD</a>;00139 }00140 out = (short) v;00141 <font class="keywordflow">return</font> out;00142 };00143 00144 <font class="keywordtype">int</font>00145 SrcLinear(00146 <font class="keywordtype">short</font> X[],00147 <font class="keywordtype">short</font> Y[],00148 <font class="keywordtype">double</font> factor,00149 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> *Time,00150 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font>& Nx,00151 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nout);00152 00153 <font class="keywordtype">int</font>00154 SrcUp(00155 <font class="keywordtype">short</font> X[],00156 <font class="keywordtype">short</font> Y[],00157 <font class="keywordtype">double</font> factor,00158 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> *Time,00159 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font>& Nx,00160 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nout,00161 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nwing,00162 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> LpScl,00163 <font class="keywordtype">short</font> Imp[],00164 <font class="keywordtype">short</font> ImpD[],00165 <font class="keywordtype">bool</font> Interp);00166 00167 <font class="keywordtype">int</font>00168 SrcUD(00169 <font class="keywordtype">short</font> X[],00170 <font class="keywordtype">short</font> Y[],00171 <font class="keywordtype">double</font> factor,00172 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> *Time,00173 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font>& Nx,00174 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nout,00175 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nwing,00176 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> LpScl,00177 <font class="keywordtype">short</font> Imp[],00178 <font class="keywordtype">short</font> ImpD[],00179 <font class="keywordtype">bool</font> Interp);00180 00181 <font class="keywordtype">int</font>00182 FilterUp(00183 <font class="keywordtype">short</font> Imp[],00184 <font class="keywordtype">short</font> ImpD[],00185 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nwing,00186 <font class="keywordtype">bool</font> Interp,00187 <font class="keywordtype">short</font> *Xp,00188 <font class="keywordtype">short</font> Ph,00189 <font class="keywordtype">short</font> Inc);00190 00191 <font class="keywordtype">int</font>00192 FilterUD(00193 <font class="keywordtype">short</font> Imp[],00194 <font class="keywordtype">short</font> ImpD[],00195 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nwing,00196 <font class="keywordtype">bool</font> Interp,00197 <font class="keywordtype">short</font> *Xp,00198 <font class="keywordtype">short</font> Ph,00199 <font class="keywordtype">short</font> Inc,00200 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> dhb);00201 00202 <font class="keywordtype">int</font>00203 resampleFast( <font class="comment">/* number of output samples returned */</font>00204 <font class="keywordtype">int</font>& inCount, <font class="comment">/* number of input samples to convert */</font>00205 <font class="keywordtype">int</font> outCount, <font class="comment">/* number of output samples to compute */</font>00206 <font class="keywordtype">short</font> inArray[], <font class="comment">/* input array data (length inCount * nChans) */</font>00207 <font class="keywordtype">short</font> outArray[]);<font class="comment">/* output array data (length outCount * nChans) */</font>00208 00209 <font class="keywordtype">int</font>00210 resampleWithFilter( <font class="comment">/* number of output samples returned */</font>00211 <font class="keywordtype">int</font>& inCount, <font class="comment">/* number of input samples to convert */</font>00212 <font class="keywordtype">int</font> outCount, <font class="comment">/* number of output samples to compute */</font>00213 <font class="keywordtype">short</font> inArray[], <font class="comment">/* input array data (length inCount * nChans) */</font>00214 <font class="keywordtype">short</font> outArray[], <font class="comment">/* output array data (length outCount * nChans) */</font>00215 <font class="keywordtype">short</font> Imp[], <font class="keywordtype">short</font> ImpD[],00216 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> LpScl, <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nmult, <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> Nwing);00217 00218 00219 <font class="keyword">static</font> <font class="keywordtype">short</font> SMALL_FILTER_IMP[];00220 <font class="keyword">static</font> <font class="keywordtype">short</font> LARGE_FILTER_IMP[];00221 00222 <font class="keywordtype">bool</font> interpFilt;00223 <font class="keywordtype">bool</font> largeFilter;00224 <font class="keywordtype">bool</font> linearInterp;00225 <font class="keywordtype">short</font> ** _X;00226 <font class="keywordtype">short</font> ** _Y;00227 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> _Time;00228 <font class="keywordtype">double</font> _factor;00229 <font class="keywordtype">int</font> _nChans;00230 <font class="keywordtype">bool</font> _initial;00231 <font class="keywordtype">double</font> _vol;00232 00233 };00234 00235 00236 <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 + -
显示快捷键?