Results 1 to 11 of 11

Thread: Mp3 to WAV converter???

  1. #1
    Guest
    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

  2. #2
    Hyperactive Member marnitzg's Avatar
    Join Date
    Oct 2000
    Location
    South Africa
    Posts
    372
    Sorry, vb jsut isn't powerful enough to do this. You'll need either c or asm for this job!

  3. #3
    Guest
    Okay thanks for the help anyway. - I just use a third party tool.

    Thanks again for the quick response .

  4. #4
    Guest
    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

  5. #5
    Guest
    Okay thanks very much - Shall try the code a little later on.

    Thnaks again

  6. #6
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    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

  7. #7
    Hyperactive Member marnitzg's Avatar
    Join Date
    Oct 2000
    Location
    South Africa
    Posts
    372
    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?

  8. #8
    Guest

    Thumbs up

    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.


  9. #9
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    You can get the file format specification of mp3 and wav here.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  10. #10
    Guest
    Thanks again people - Sound interesting - When I get the time I shall play around - To much college work at the mo

    Thanks again

  11. #11
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    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
  •  



Click Here to Expand Forum to Full Width