?? lamedllinterface.htm
字號:
<td><b>format.LHV1.bCRC</b></td> <td>Set this to TRUE in order to enable CRC-checksum in the bitstream.</td> </tr> <tr> <td><b>format.LHV1.bOriginal</b></td> <td>If this is set to TRUE the Original bit in the MP3 stream will be set.</td> </tr> <tr> <td><b>format.LHV1.bPrivate</b></td> <td>If this is set to TRUE the Private bit in the MP3 stream will be set.</td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><strong>format.LHV1.nVbrMethod</strong></td> <td>Sepecifes if the VBR method to use, currently the following settings are supported:<p><font size="3">VBR_METHOD_NONE (don't use VBR, use CBR encoding instead),<br> VBR_METHOD_DEFAULT (default VBR method)<br> VBR_METHOD_OLD (old VBR method, proven to be reliable)<br> VBR_METHOD_NEW (new VBR method, faster than VBR_METHOD_OLD)<br> VBR_METHOD_MTRH (depreciated, same as VBR_METHOD_NEW)<br> VBR_METHOD_ABR (Average Bitrate Encoding, see also </font><strong>format.LHV1.dwVbrAbr_bps</strong><font size="3">)</font></p> </td> </tr> <tr> <td><strong>format.LHV1.bWriteVBRHeader</strong></td> <td>Sepecifes if the a XING VBR header should be written or not. When this option is enabled, you have to call the <font size="3">beWriteVBRHeader function when encoding has been completed. Keep in mind that the VBR info tag can also be written for CBR encoded files, the TAG info can be useful for additional info like encoder delay and the like.</font></td> </tr> <tr> <td><strong>format.LHV1.bEnableVBR</strong></td> <td>Specifies if VBR encoding option shall be used or not, possible values are TRUE/FALSE</td> </tr> <tr> <td><strong>format.LHV1.nVBRQuality</strong></td> <td>Quality option if VBR is enabled (0=highest quality, 9 is lowest quality)</td> </tr> <tr> <td><strong>format.LHV1.dwVbrAbr_bps</strong></td> <td>If the Average Bit Rate is specified, the lame encoder ignores the nVBRQuality settings (However, <strong>bEnableVBR</strong> must be set to TRUE and the <strong>format.LHV1.nVbrMethod </strong>parameter should be set to<strong> </strong><font size="3"><strong>VBR_METHOD_ABR</strong>). The allowed range for the </font><strong>format.LHV1.dwVbrAbr_bps </strong>parameter<strong> </strong>any integer value <font size="3">between:</font><p><strong>MPEG-I:</strong> 32000 .. 320000 bps<b><br> </b><strong>MPEG-II:</strong> 8000 .. 160000 bps</p> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><strong>format.LHV1.bNoBitRes</strong></td> <td>Disables the bit-resorvoir and disables the insertion of padded frames</td> </tr> <tr> <td><strong>format.LHV1.nQuality</strong></td> <td>Quality Setting, HIGH BYTE should be NOT LOW byte, otherwhise quality is set to 5. This is done to be backward compatible. So to set quality to 3, you have to set the nQuality parameter to 0xFC03.</td> </tr> <tr> <td><b>format.mp3.btReserved</b></td> <td>For future use, set all elements to zero</td> </tr></table><p> </p><p> </p><hr><h1><a name="beInitStream()"><font size="5">beInitStream()</font></a></h1><table border="0" cellspacing="16" width="100%"> <tr> <td valign="top" width="20%"><b>Synopsis:</b></td> <td valign="top" width="80%">BE_ERR beInitStream( PBE_CONFIG <i>pbeConfig</i>, PDWORD <i>dwSamples</i>, PDWORD <i>dwBufferSize</i>, PHBE_STREAM <i>phbeStream</i> )</td> </tr> <tr> <td valign="top" width="20%"><b>Parameters:</b></td> <td valign="top" width="80%"><table border="0" cellspacing="10" width="100%"> <tr> <td valign="top" width="20%"><i>pbeConfig</i></td> <td>Pointer at the struct containing encoder settings.</td> </tr> <tr> <td valign="top"><i>dwSamples</i></td> <td>Pointer at double word where number of samples to send to each <i>beEncodeChunk()</i> is returned.</td> </tr> <tr> <td valign="top"><i>dwBufferSize</i></td> <td>Pointer at double word where minimum size in bytes of output buffer is returned.</td> </tr> <tr> <td valign="top"><i>phbeStream</i></td> <td>Pointer at integer where Stream handle is returned.</td> </tr> </table> </td> </tr> <tr> <td valign="top" width="20%"><b>Description:</b></td> <td valign="top" width="80%">This function is the first to call before starting an encoding stream.</td> </tr></table><hr><h1><a name="beEncodeChunk()"><font size="5">beEncodeChunk()</font></a></h1><table border="0" cellspacing="16" width="100%"> <tr> <td valign="top" width="20%"><b>Synopsis:</b></td> <td valign="top" width="80%">BE_ERR beEncodeChunk( HBE_STREAM <i>hbeStream</i>, DWORD <i>nSamples</i>, PSHORT <i>pSamples</i>, PBYTE <i>pOutput</i>, PDWORD <i>pdwOutput</i> )</td> </tr> <tr> <td valign="top" width="20%"><b>Parameters:</b></td> <td valign="top"><table border="0" cellspacing="10" width="100%"> <tr> <td valign="top" width="20%"><i>hbeStream</i></td> <td width="80%">Handle of the stream.</td> </tr> <tr> <td valign="top" width="90"><i>nSamples</i></td> <td>Number of samples to be encoded for this call. This should be identical to what is returned by <i>beInitStream()</i>, unless you are encoding the last chunk, which might be smaller.</td> </tr> <tr> <td valign="top" width="90"><i>pSamples</i></td> <td>Pointer at the 16-bit signed samples to be encoded. These should be in stereo when encoding a stereo MP3 and mono when encoding a mono MP3.</td> </tr> <tr> <td valign="top" width="90"><i>pOutput</i></td> <td>Where to write the encoded data. This buffer should be at least of the minimum size returned by <i>beInitStream()</i>.</td> </tr> <tr> <td valign="top" width="90"><i>pdwOutput</i></td> <td>Where to return number of bytes of encoded data written. The amount of data written might vary from chunk to chunk.</td> </tr> </table> </td> </tr> <tr> <td valign="top" width="20%"><b>Description:</b></td> <td valign="top">Encodes a chunk of samples. <i>Please note that if you have set the output to generate mono MP3 files you must feed beEncodeChunk() with mono samples!</i></td> </tr></table><hr><h1><a name="beDeinitStream()"><font size="5">beDeinitStream()</font></a></h1><table border="0" cellspacing="16" width="100%"> <tr> <td valign="top" width="20%"><b>Synopsis:</b></td> <td valign="top" width="80%">BE_ERR beDeinitStream( HBE_STREAM <i>hbeStream</i>, PBYTE <i>pOutput</i>, PDWORD <i>pdwOutput</i> )</td> </tr> <tr> <td valign="top" width="20%"><b>Parameters:</b></td> <td valign="top"><table border="0" cellspacing="10" width="100%"> <tr> <td valign="top" width="20%"><i>hbeStream</i></td> <td width="80%">Handle of the stream.</td> </tr> <tr> <td valign="top"><i>pOutput</i></td> <td>Where to write the encoded data. This buffer should be at least of the minimum size returned by <i>beInitStream()</i>.</td> </tr> <tr> <td><i>pdwOutput</i></td> <td>Where to return number of bytes of encoded data written.</td> </tr> </table> </td> </tr> <tr> <td valign="top" width="20%"><b>Description:</b></td> <td valign="top">This function should be called after encoding the last chunk in order to flush the encoder. It writes any encoded data that still might be left inside the encoder to the output buffer. This function should NOT be called unless you have encoded all of the chunks in your stream.</td> </tr></table><hr><h1><a name="beCloseStream()"><font size="5">beCloseStream()</font></a></h1><table border="0" cellspacing="16" width="100%"> <tr> <td valign="top" width="20%"><b>Synopsis:</b></td> <td valign="top">BE_ERR beCloseStream( HBE_STREAM <i>hbeStream</i> )</td> </tr> <tr> <td valign="top" width="90"><b>Parameters:</b></td> <td valign="top"><table border="0" cellspacing="10" width="100%"> <tr> <td width="20%"><i>hbeStream</i></td> <td>Handle of the stream.</td> </tr> </table> </td> </tr> <tr> <td valign="top" width="90"><b>Description:</b></td> <td valign="top">Last function to be called when finished encoding a stream. Should unlike <i>beDeinitStream()</i> also be called if the encoding is canceled.</td> </tr></table><hr><h1><a name="beVersion()"><font size="5">beVersion()</font> </a></h1><table border="0" cellspacing="16" width="100%"> <tr> <td valign="top" width="20%"><b>Synopsis:</b></td> <td valign="top">VOID beVersion( PBE_VERSION <i>pbeVersion</i> )</td> </tr> <tr> <td valign="top"><b>Parameters:</b></td> <td valign="top"><table border="0" cellspacing="10" width="100%"> <tr> <td valign="top" width="20%"><i>pbeVersion</i></td> <td>Pointer at struct where version number, release date and URL for homepage is returned.</td> </tr> </table> </td> </tr> <tr> <td valign="top"><b>Description:</b></td> <td valign="top">Returns information like version numbers (both of the DLL and encoding engine), release date and URL for lame_enc's homepage. All this information should be made available to the user of your product through a dialog box or something similar.</td> </tr></table><p> </p><hr><p> </p><h1><a name="beWriteVBRHeader()"><font size="5">beWriteVBRHeader()</font></a></h1><table border="0" cellspacing="16" width="100%"> <tr> <td valign="top" width="20%"><b>Synopsis:</b></td> <td valign="top">VOID beWriteVBRHeader( LPCSTR <i>pszMP3FileName</i> )</td> </tr> <tr> <td valign="top"><b>Parameters:</b></td> <td valign="top"><table border="0" cellspacing="10" width="100%"> <tr> <td valign="top" width="20%"><i>pszMP3FileName</i></td> <td>Const Pointer zero terminated string, that contains the MP3 file name.</td> </tr> </table> </td> </tr> <tr> <td valign="top"><b>Description:</b></td> <td valign="top">Writes a Xing Header in front of the MP3 file. Make sure that the MP3 file is closed, and the the beConfig.format.LHV1.bWriteVBRHeader has been set to TRUE. In addition, it is always save to call beWriteVBRHeader after the encoding has been finished, even when the beConfig.format.LHV1.bWriteVBRHeader is not set to TRUE</td> </tr></table><p> </p><p> </p><hr><p> </p><h1><a name="Lame_enc.dll debug option">Lame_enc.dll debug option</a></h1><p>The lame_enc.dll has a built-in debug option, that dumps allthe important internal settings to a text file. To enable thisfeature, create a text file in the Windows directory which isnamed lame_enc.ini, and should contain the following two lines</p><p>[debug]<br>WriteLogFile=1</p><p>Save this text file, and each time you encode a file, thesettings are added to a file name lame_enc.txt, that is locatedin the same directory as the lame_enc.dll</p><p> </p><p><br> </p></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -