Hi all,
I would like to build a MP3 to WAV conveter. Is this possible in VB and if possible any source code would be much welcomed.
Thanks for your help
Printable View
Hi all,
I would like to build a MP3 to WAV conveter. Is this possible in VB and if possible any source code would be much welcomed.
Thanks for your help
Sorry, vb jsut isn't powerful enough to do this. You'll need either c or asm for this job!
Okay thanks for the help anyway. - I just use a third party tool.
Thanks again for the quick response :).
Code:'code from Megatron
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Private Sub cmdRecord_Click()
'Open a WaveAudio called Record
mciSendString "open new type waveaudio Alias record", 0&, 0, 0
'Start Recording
mciSendString "record record", 0&, 0, 0
'Play your MP3 Here.
End Sub
Private Sub cmdSave_Click()
'Stops recording
mciSendString "stop record", 0&, 0, 0
'Saves the sound
mciSendString "save record C:\Windows\Desktop\MyWav.wav", 0&, 0, 0
'Close "Record"
mciSendString "close record", 0&, 0, 0
End Sub
Okay thanks very much - Shall try the code a little later on.
Thnaks again
VB *is* powerful enough to do it, and not just with MCI
u can do it manually if u want - find mp3 file format and wav format and find info about recording sound.
u can do just about nething in VB; it's only limited slighly by no proper pointer implementation
Powerful enough to do anything? Ok, maybe I was wrong about VB. Maybe I didn't go deep enough. For mp3 decoding you need to block read ahead according to the bitrate. So how do you variably block read a file?
Okay thanks - Shall have a play around with some code and see if I can produce a converter.
Decided to use CD Maker 1.30 - it is great for converting MP3 to CD - I.e no decoding.
Thnaks for all your replies - This is such a great forum.
You can get the file format specification of mp3 and wav here.
Thanks again people - Sound interesting - When I get the time I shall play around - To much college work at the mo :)
Thanks again
with API calls u can do all sorts of funny file ops..
ReadFile, CreateFile
see MSDN