473,856 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use LAME in Windows?

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
2 3265
On Jun 22, 3:21 pm, juan <j...@discussio ns.microsoft.co mwrote:
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.diagnost ics.process.sta rt and by passing proper arguments using
Process.StartIn fo. I also want to warn you that you shouldn't forget
using quote marks ( " ") while specifying long paths like "c:
\Documents And Settings\file.m p3" 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.Diagnost ics.ProcessStar tInfo("lame.exe ",
arguments_here)
psInfo.WorkingD irectory = Application.Sta rtupPath
psInfo.WindowSt yle = ProcessWindowSt yle.Hidden
Dim myProcess As Process = System.Diagnost ics.Process.Sta rt(psInfo)
' \\\\\\\\\\\\\\\ \\\\\
Hope this helps,

Onur Güzel
Jun 27 '08 #2
The answer has been very helpfull.
Thanks you very much.
"kimiraikko nen" wrote:
On Jun 22, 3:21 pm, juan <j...@discussio ns.microsoft.co mwrote:
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.diagnost ics.process.sta rt and by passing proper arguments using
Process.StartIn fo. I also want to warn you that you shouldn't forget
using quote marks ( " ") while specifying long paths like "c:
\Documents And Settings\file.m p3" 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.Diagnost ics.ProcessStar tInfo("lame.exe ",
arguments_here)
psInfo.WorkingD irectory = Application.Sta rtupPath
psInfo.WindowSt yle = ProcessWindowSt yle.Hidden
Dim myProcess As Process = System.Diagnost ics.Process.Sta rt(psInfo)
' \\\\\\\\\\\\\\\ \\\\\
Hope this helps,

Onur Güzel
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2753
by: Jeffrey Haun | last post by:
I seems to me that in order for microsoft to survive past the windows os, that they need to support DOT.NET on other platforms. Wasn't this the rationel for DOT.NET in the first place, To break the dependancy on the window os. I think they should take a direct role in bring dot net the mac and linux. If Sun did one thing right, it was to port the java VM to all popular platforms, insuring its wide spread use. Microsoft should do the...
25
4298
by: TPJ | last post by:
GUI's etc: PyGtk on Windows "(...) So if someone develops mainly for X and just wants to make sure that it is not impossible to run on Windows, you can use PyGTK. (...)", July 2nd, 1999 pyGTK on Windows "(...) > can i use pyGTK under > Windows???
32
2833
by: cat_dog_ass | last post by:
I am used to programming in DOS mode via Borland C++. I would now like to create programs for the Windows envirinment. Is it absoultely necessary to use Visual C++ to do this? Are there other tools that can help me in doing Windows programming via C++? How am I going to create drop-down menus and allow my programs to interact with the mouse? Regards, Icon
7
4741
by: Steve M | last post by:
I'm trying to invoke a Java command-line program from my Python program on Windows XP. I cannot get the paths in one of the arguments to work right. The instructions for the program describe the following for the command-line arguments: java -jar sforcedataloader.jar -Dsalesforce.config.dir=CONFIG_DIRECTORY They also give an example:
8
9755
by: Dennis | last post by:
I am trying to decompress MP3 files to WAV using VB.Net. What I really need is a wrapper in VB.Net or C# that includes ALL of the Lame.Dll funcitons including those to decompress to a WAV File. Most I've found so far don't work and lack any form of documention. -- Dennis in Houston
1
4037
by: DropIn | last post by:
Sheesh! I was doing research on using batch files as drop targets when I came across a python discussion thread on this site with the same topic. I thought I would share what I had learned (the hard way), but I could find no way to reply to that thread (even after registering!). Anyway, wrapping the python script in a batch file is a good idea, but I believe the problem the python programmer was encountering was how Windows automatically...
1
2640
by: Harlin Seritt | last post by:
Is there any type of lame_enc.dll wrapper for Python that's available? Thanks, Harlin Seritt
1
2128
by: Erik Jones | last post by:
So, I was just taking a look at doctest.py and saw this: Then running the module as a script will cause the examples in the docstrings to get executed and verified: python M.py This won't display anything unless an example fails, in which case the failing example(s) and the cause(s) of the failure(s) are printed to stdout
0
975
by: Sells, Fred | last post by:
well, duh ;) as my granny used to say "If it had been a snake it would a bit ya". I could probably come up with some lame excuse why I didn't see the msi on osuch.org, but it would be lame and an excuse. anyway. Thanks!
0
9920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9764
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11063
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7932
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5762
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5960
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.