Been attempting to build LAME_ENC.DLL support into CD Wave. After re-factoring the whole output logistics to support other-than-WAV files, I couldn't get it to work.
I peeked around, noticing the OGG Vorbis codec offers a very similar interface, and that worked on the first attempt. If you want proof, download the (very) beta http://www.cdwave.com/cdwav192.exe (vorbis.dll is included in the package).
The lame_enc.dll will crash with an access violation error when calling the encode chunk function. I translated most of the stuff from C(++) to Delphi.
On one occasion, it really did encode the file, but crashed close to the end. The MP3 was playable though, and sounded just fine. I never managed to reproduce this.
Forgot to bring a few code snippets, but are there any LAME programmers who know what to look for? Is there some undocumented 'feature' in the DLL interface that makes it crash....
I tried with the rarewares distribution, using v 1.90.3, 1.92.something and the 1.93 alpha version, but they all behaved identically.