By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,453 Members | 3,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,453 IT Pros & Developers. It's quick & easy.

How to use LAME in Windows?

P: n/a
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.

Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Jun 22, 3:21 pm, juan <j...@discussions.microsoft.comwrote:
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-...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
Jun 27 '08 #2

P: n/a
The answer has been very helpfull.
Thanks you very much.
"kimiraikkonen" wrote:
On Jun 22, 3:21 pm, juan <j...@discussions.microsoft.comwrote:
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-...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
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.