Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to use LAME in Windows?

4 views
Skip to first unread message

juan

unread,
Jun 22, 2008, 8:21:01 AM6/22/08
to
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.

kimiraikkonen

unread,
Jun 22, 2008, 10:41:40 AM6/22/08
to

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

juan

unread,
Jun 22, 2008, 12:16:01 PM6/22/08
to
The answer has been very helpfull.
Thanks you very much.
0 new messages