Link to home
Start Free TrialLog in
Avatar of ab2ae
ab2ae

asked on

Converting mp3 to wav or visa-versa

I am trying to convert an mp3 to a wav file or visa-versa using visual studio 2003. I have found sample software packages on the net but i need code samples in vb.net. I have searched and searched.........any ideas experts?
Avatar of ElrondCT
ElrondCT
Flag of United States of America image

Are you saying you want to reinvent the wheel and program the actual conversion, reading in the mp3 data, processing it, and outputting it as wav? Why do that rather than calling one of the programs that is available? I'm sure one or more of them would allow you to specify the input & output filenames on a command line, and you could then do something like:

System.Diagnostics.Process.Start("c:\converter\audioconverter.exe old.mp3 new.wav")

or whatever the proper syntax is for the particular package you use.
Avatar of ab2ae
ab2ae

ASKER

ElrondCT


i dont know too much about this, hence my question. I certainly dont want to reinvent the wheel. What package are you referring to? This seems to be on the right track though
I use this and recommend it to anyone.

http://www.nch.com.au/switch/plus.html
Oops!

I don't know if it can be controlled by a .net program, or any other program for that matter.
Avatar of ab2ae

ASKER

ElrondCT

i typed in 'converter' inin the windows search and found 4 dll's......................

Microsoft.VisualStudio.Converters.Interop.dll
Miscrsoft.VisualStudio.ProjectConverts.dll
VSConvertersPackage.dll
VSConvertersPackageUI.dll

I am using windows XP and Visual Studio 2003, does this help?
Avatar of ab2ae

ASKER

dancebert

The problem is i need to use an existing program built-in on my system to get this working via vb.net. It needs to be converted via my program, i think i need to do something like ...

System.Diagnostics.Process.Start("c:\converter\audioconverter.exe old.mp3 new.wav")

as ElrondCT said

I don't have a recommendation of a specific program. You said you found a number of packages on the net; you might want to contact some of them and ask them if they have a command-line interface that would allow specifying input and output names either on the command line or in an initialization file so that the conversion can be done without user interaction.
Avatar of ab2ae

ASKER

I was under the assumption that there was a built-in codec to do such file conversions, hmmm
ASKER CERTIFIED SOLUTION
Avatar of dancebert
dancebert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial