classaflibaudiosampleratecvt.html
来自「一个共享源码的音频库5(doc 文档)」· HTML 代码 · 共 417 行 · 第 1/2 页
HTML
417 行
<p>Reimplemented in <a class="el" href="classaflibAudioPitch.html#a3">aflibAudioPitch</a>. </td> </tr></table><a name="a8" doxytag="aflibAudioSampleRateCvt::isChannelsSupported"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool aflibAudioSampleRateCvt::isChannelsSupported </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int & </td> <td class="mdname1" valign="top" nowrap> <em>channels</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Inform base class that this object only supports 16bit signed data.<p>This overrides the virtual function in the base class. This algorithm works only on 16 bit signed data. Base class must convert the data. <p>Reimplemented from <a class="el" href="classaflibAudio.html#b11">aflibAudio</a>. </td> </tr></table><a name="a7" doxytag="aflibAudioSampleRateCvt::isDataSizeSupported"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool aflibAudioSampleRateCvt::isDataSizeSupported </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="aflib_8h.html#a30">aflib_data_size</a> </td> <td class="mdname1" valign="top" nowrap> <em>size</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Inform base class that this object only supports 16bit signed data.<p>This overrides the virtual function in the base class. This algorithm works only on 16 bit signed data. Base class must convert the data. <p>Reimplemented from <a class="el" href="classaflibAudio.html#b8">aflibAudio</a>. </td> </tr></table><a name="a6" doxytag="aflibAudioSampleRateCvt::process"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classaflibData.html">aflibData</a> * aflibAudioSampleRateCvt::process </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="aflib_8h.html#a33">aflibStatus</a> & </td> <td class="mdname" nowrap> <em>ret_status</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>long long </td> <td class="mdname" nowrap> <em>position</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int & </td> <td class="mdname" nowrap> <em>num_samples</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>free_memory</em> = TRUE</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Performs some needed preprocessing before base class function is called.<p>This function will take the position and number of samples requested and based on several factors will determine what position and number of samples is required from its parent. It will also try as best as possible to keep the data streaming. This is so it can read from a device or a format that does not have random access. When this function is done it will call the <a class="el" href="classaflibAudio.html">aflibAudio</a> base classes function of the same name. <p>Reimplemented from <a class="el" href="classaflibAudio.html#a13">aflibAudio</a>. </td> </tr></table><a name="a2" doxytag="aflibAudioSampleRateCvt::setFactor"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void aflibAudioSampleRateCvt::setFactor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname" nowrap> <em>factor</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>double </td> <td class="mdname" nowrap> <em>volume</em> = 1.0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the sample rate conversion factor.<p>This will set the sample rate conversion factor. Virtually any value, within reason, can be set. For instance to convert 22050 to 44100 a factor of 0.5 should be used. To convert 44100 to 22050 a factor of 2.0 should be used. This will change the factor that was set in the constructor. This function can also be used to change the final amplitude. This only applies to the small and large filters and not the linear mode. </td> </tr></table><a name="a3" doxytag="aflibAudioSampleRateCvt::setInputConfig"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void aflibAudioSampleRateCvt::setInputConfig </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classaflibConfig.html">aflibConfig</a> & </td> <td class="mdname1" valign="top" nowrap> <em>cfg</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the input and output audio data configuration of this object.<p>This function overrides the <a class="el" href="classaflibAudio.html">aflibAudio</a> base class function. It will change the output rate sample rate in the output audio configuration. <p>Reimplemented from <a class="el" href="classaflibAudio.html#a7">aflibAudio</a>.<p>Reimplemented in <a class="el" href="classaflibAudioPitch.html#a2">aflibAudioPitch</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="aflibAudioSampleRateCvt_8h-source.html">aflibAudioSampleRateCvt.h</a><li><a class="el" href="aflibAudioSampleRateCvt_8cc.html">aflibAudioSampleRateCvt.cc</a></ul><hr><address align="right"><small>Generated on Wed May 8 20:51:10 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 + -
显示快捷键?