Hello:
I have tried for weeks to use LAME in Windows.
Can somebody tell me how to do it?
I can't add a reference to the project (Visual Basic 2005).
Thanks.
Hi,
I beleive i worked on LAME a lot, the most proper way you need to go
with is to use wrapped lame.exe.
Unfortunately, lame_enc.dll is written in traditional unmanaged C++
then you can't reference it under your VB project. That's why you can
use lame.exe from console.
Here is an example:
http://www.codeproject.com/KB/audio-video/LameShell.aspx
However, that article is extended, you can just launch lame.exe using
system.diagnostics.process.start and by passing proper arguments using
Process.StartInfo. I also want to warn you that you shouldn't forget
using quote marks ( " ") while specifying long paths like "c:
\Documents And Settings\file.mp3" because you're doing work under
console actually, you just hide the process, the job is done in
background by lame.exe.
Like:
' ////////////
Dim psInfo As New System.Diagnostics.ProcessStartInfo("lame.exe",
arguments_here)
psInfo.WorkingDirectory = Application.StartupPath
psInfo.WindowStyle = ProcessWindowStyle.Hidden
Dim myProcess As Process = System.Diagnostics.Process.Start(psInfo)
' \\\\\\\\\\\\\\\\\\\\
Hope this helps,
Onur Güzel