I am attempting to play mp3's as background music whenever my program opens up, and i have two questions.
1. I am currently doing it through windows media play...
'********************************************************
Private WithEvents p As MediaPlayer.MediaPlayer
Private Sub Play_Click()
p.Open "C:\Documents and Settings\Paul Juckiewicz\My Documents\My Music\80's U2 - Sunday Bloody Sunday.mp3"
End Sub
Private Sub Stop_Click()
p.stop
End Sub
Private Sub Form_Load()
Set p = New MediaPlayer.MediaPlayer
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
p.stop
Set p = Nothing
End Sub
'******************************************************
If I put my program on someones computer that doesnt have windows media play...will it still play????
2. I am looking for another way to play the file, is there a api call that can recognize mp3 files.
Basically im looking for what people think is the best method for playing music for background purposes in my program. Thanks in advance
1. I am currently doing it through windows media play...
'********************************************************
Private WithEvents p As MediaPlayer.MediaPlayer
Private Sub Play_Click()
p.Open "C:\Documents and Settings\Paul Juckiewicz\My Documents\My Music\80's U2 - Sunday Bloody Sunday.mp3"
End Sub
Private Sub Stop_Click()
p.stop
End Sub
Private Sub Form_Load()
Set p = New MediaPlayer.MediaPlayer
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
p.stop
Set p = Nothing
End Sub
'******************************************************
If I put my program on someones computer that doesnt have windows media play...will it still play????
2. I am looking for another way to play the file, is there a api call that can recognize mp3 files.
Basically im looking for what people think is the best method for playing music for background purposes in my program. Thanks in advance