Results 1 to 3 of 3

Thread: How do you use MP3 i VB ?

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    Sweden
    Posts
    37

    Question

    I think i would be cool with my favourite song as backgroundmusic in a prog.
    Anyone know how do do it?
    Balder = Viking God
    VB6/VC++ Enterprise Editions

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    'Play A sound
    
    '
    'API Function to play the sound
    'bas module code
    
    Private Declare Function PlaySound Lib "winmm.dll" _
    Alias "PlaySoundA" (ByVal lpszName As String, _
    ByVal hModule As Long, ByVal dwFlags As Long) As Long
    
    Private Sub Command1_Click()
    '
    End Sub
    
    Private Sub Command2_Click()
    'Stop wav
        PlaySound "C:\A Wayne\YourFile.wav", 0&, &H4
    End Sub
    
    Private Sub Form_Load()
    'Play wav
        PlaySound "C:\ab\baby.wav", 0&, &H1
    End Sub
    MP3
    http://209.207.250.147/showthread.php?threadid=31987
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Lively Member
    Join Date
    Aug 2000
    Posts
    125
    if you have downloaded Real Player then you should have their control in components which you can use to play MP3's

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