classaflibfile.html
来自「一个共享源码的音频库5(doc 文档)」· HTML 代码 · 共 1,188 行 · 第 1/4 页
HTML
1,188 行
</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>Main API function to write a segment of audio data.<p>This function is only used for module support. For no module support the derived classes afwrite function will be called instead. For module support this function will make a call to the derived class. <p>Reimplemented in <a class="el" href="classaflibAifcFile.html#a5">aflibAifcFile</a>, <a class="el" href="classaflibAiffFile.html#a5">aflibAiffFile</a>, <a class="el" href="classaflibAuFile.html#a5">aflibAuFile</a>, <a class="el" href="classaflibBladeFile.html#a5">aflibBladeFile</a>, <a class="el" href="classaflibLameFile.html#a5">aflibLameFile</a>, <a class="el" href="classaflibMpgFile.html#a5">aflibMpgFile</a>, <a class="el" href="classaflibMpg123File.html#a5">aflibMpg123File</a>, <a class="el" href="classaflibOggFile.html#a5">aflibOggFile</a>, <a class="el" href="classaflibDevFile.html#a5">aflibDevFile</a>, <a class="el" href="classaflibSolarisSparcDevFile.html#a5">aflibSolarisSparcDevFile</a>, <a class="el" href="classaflibSoxFile.html#a5">aflibSoxFile</a>, and <a class="el" href="classaflibWavFile.html#a5">aflibWavFile</a>. </td> </tr></table><a name="d5" doxytag="aflibFile::create"></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"> aflibFile * aflibFile::create </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const string & </td> <td class="mdname" nowrap> <em>format</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const string & </td> <td class="mdname" nowrap> <em>file</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classaflibConfig.html">aflibConfig</a> & </td> <td class="mdname" nowrap> <em>cfg</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="aflib_8h.html#a33">aflibStatus</a> * </td> <td class="mdname" nowrap> <em>status</em> = NULL</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Main static function for writing to a device or file by format.<p>This is a static function of this class. Users call this function as the main API to open an audio file or device for writing. Since this is a static member function it is not associated with any aflibFile object and thus no data members can be accessed. The user passes in the file format to create. The user also specifies the file name. The specific type of audio data is specified in the cfg parameter. The status of this operation will be returned to the user as status. </td> </tr></table><a name="d4" doxytag="aflibFile::create"></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"> aflibFile * aflibFile::create </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="aflib_8h.html#a34">aflibFileType</a> </td> <td class="mdname" nowrap> <em>type_enum</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const string & </td> <td class="mdname" nowrap> <em>file</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classaflibConfig.html">aflibConfig</a> & </td> <td class="mdname" nowrap> <em>cfg</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="aflib_8h.html#a33">aflibStatus</a> * </td> <td class="mdname" nowrap> <em>status</em> = NULL</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Main static function for writing to a device or file by type.<p>This is a static function of this class. Users call this function as the main API to open an audio file or device for writing. Since this is a static member function it is not associated with any aflibFile object and thus no data members can be accessed. The user passes in the file type to create. The user also specifies the file name. The specific type of audio data is specified in the cfg parameter. The status of this operation will be returned to the user as status. </td> </tr></table><a name="a7" doxytag="aflibFile::getFormat"></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"> const string & aflibFile::getFormat </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Return the current file or device format.<p> </td> </tr></table><a name="a9" doxytag="aflibFile::getInputConfig"></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"> const <a class="el" href="classaflibConfig.html">aflibConfig</a> & aflibFile::getInputConfig </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="a6" doxytag="aflibFile::getItem"></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 aflibFile::getItem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>item</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>value</em></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>Provides the ability to get format specific information.<p>This provides the ability to get specific information relating to a specific format. One passes an item that is a specific character string that will be recognized by a format. One also passes a void pointer to an allocated object of the correct type. This data will be filled with the correct information. The documentation for the specific item will say what format the data should be. TRUE will be returned if the item was processed successfully otherwise FALSE will be returned. <p>Reimplemented in <a class="el" href="classaflibSoxFile.html#a10">aflibSoxFile</a>. </td> </tr></table><a name="a11" doxytag="aflibFile::getOutputConfig"></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"> const <a class="el" href="classaflibConfig.html">aflibConfig</a> & aflibFile::getOutputConfig </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="a18" doxytag="aflibFile::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 aflibFile::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><p>Reimplemented in <a class="el" href="classaflibSoxFile.html#a9">aflibSoxFile</a>. </td> </tr></table><a name="a15" doxytag="aflibFile::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 aflibFile::isDataSizeSupported </td> <td class="md" valign="top">( </td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?