|
-
Nov 4th, 2000, 08:24 AM
#1
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
-
Nov 4th, 2000, 11:08 AM
#2
Hyperactive Member
Sorry, vb jsut isn't powerful enough to do this. You'll need either c or asm for this job!
-
Nov 4th, 2000, 11:28 AM
#3
Okay thanks for the help anyway. - I just use a third party tool.
Thanks again for the quick response .
-
Nov 4th, 2000, 12:27 PM
#4
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
-
Nov 4th, 2000, 01:49 PM
#5
Okay thanks very much - Shall try the code a little later on.
Thnaks again
-
Nov 4th, 2000, 03:19 PM
#6
Hyperactive Member
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
buzzwords are the language of fools
-
Nov 4th, 2000, 03:36 PM
#7
Hyperactive Member
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?
-
Nov 4th, 2000, 03:38 PM
#8
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.
-
Nov 4th, 2000, 04:52 PM
#9
Fanatic Member
You can get the file format specification of mp3 and wav here.
-
Nov 4th, 2000, 05:15 PM
#10
Thanks again people - Sound interesting - When I get the time I shall play around - To much college work at the mo 
Thanks again
-
Nov 5th, 2000, 05:27 AM
#11
Hyperactive Member
with API calls u can do all sorts of funny file ops..
ReadFile, CreateFile
see MSDN
buzzwords are the language of fools
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|