Lame-enc DLL
version 1.16
(Lame engine version 3.87)
Programmers Manual
The lame_enc.dll and this manual is copyright by Albert L Faber
Originally the the DLL interface is modeled after the BladeEnc DLL interface
which is copyrighted by Tord Jansson and Jukka Poikolainen
This document and the DLL interface may be distributed freely
as long as no modifications are made to neither one of them.
Homepage: http://www.cdex.n3.net
E-mail: mailto: cdex@softwarecenter.net
Distribution
People and companies who wants to distribute lame_enc.dll with their commercial products are free to do so as far as I'm concerned, but should be aware that lame_enc.dll might infringe certain MP3 related software patents held by Fraunhofer IIS in certain countries.
Disclaimer
lame_enc.dll and this manual is distributed 'as is' with no warranty of any kind. The Author is not to be held responsible for the result of any use or misuse of this product.
Current Bugs and Limitations
Although the interface is designed to be able to handle multiple parallel streams it can't be done yet due to limitations in the engine, only one stream is allowed.
Future Compatibility
This interface should be compatible with all future versions of lame_enc.DLL without any need to recompile your programs. You should therefore not check the version number upon start and prevent users from running your program with a later version of lame_enc.DLL.
--------------------------------------------------------------------------------
How to use the DLL
1. Fill in a BE_CONFIG structure and send it to beInitStream(). Make sure that BE_ERR_SUCCESSFUL is returned.
2. Reserve at least the amount of memory returned in dwBufferSize as your output buffer.
3. Call beEncodeChunk() until you've encoded everything you want.
4. Call beDeinitStream() to make sure that all encoded data is flushed out before closing the stream.
5. Close the stream using beCloseStream()
6. And optionally call the beWriteVBRHeader() functions, to insert a Xing MP3 Header
A handy feature is the available Lame_enc.dll debug option, which will dump the important lame internal settings to a text file.
Re