How to use LAME in Windows?

J

juan

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.
 
K

kimiraikkonen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top