This blog is about the dotnet.all types of codes,news about dotnet including asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.ncluding asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.asp.net programming,dot net programming,dotnet programs,dotnet source code,source code.

Free Hosting

Free Hosting

Tuesday, November 11, 2008

C# program that plays mp3, using lame.exe

Here is an example C# program that plays mp3, using lame.exe converts wav to mp3, records and plays wav files using MCI.

Download Source Code

You will need lame.exe.
Get it here: http://www.mp3dev.org/mp3/
put it in the c:\ directory to use my defaults

I did assemble this program,but I got the info from various sources. I decided to assemble this example after spending several hours searching for this type of information for C#.
Remember that 'int, uint' in C# is the same length (32 bits, 4 bytes) as a 'long' in visual basic, and DWORD or UINT in C++
Credit given to C# HELP where I found the mp3 example.
Credit given to all the other places I found the winmm.lib info.
Visual C++ example http://www.cs.binghamton.edu/~reckert/360/11.html
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q152180


The end of the file has the lame.exe help file and info on converting types between languages. Put the lame.exe in same directory as your test wave file to convert wav to mp3
First confirm your mic is working
Code your project directory
Record a wave file

To use this as is just put the lame.exe program in the c:\ directory and record a wave don't forget to hit enter to stop the recording
lame.exe is at http://www.webattack.com/get/lame.shtml


CLICKHERE TO DOWNLOAD SOURCE CODE

0 comments:

dotnet(.Net) Project Source code Downloads and Tutorials

Email Subscrption



Enter your email address:

Delivered by FeedBurner

Feedburner Count

Blog Archive

Unique Visitor

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger