|
-
Jun 20th, 2009, 03:08 PM
#1
Thread Starter
Member
trouble playing a music file...
so a friend helped me out with this bit of code
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Const SND_SYNC = &H0 ' play synchronously (default)
Const SND_NODEFAULT = &H2
Private Sub Image1_Click()
Dim sound1 As Long
sound1 = sndPlaySound("insert music file path here", SND_NODEFAULT)
End Sub
so it works when i enter a MP3 file of a guitar string...but when i try and put a MP3 music file in the pathname nothing happens...anyone have any idea what up?
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
|