I have an application I programmed using VB5 and wanted to add sounds to it. I used the following declaration:
Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
This works fine, but the problem I'm having is that when I play a .WAV file, my program waits for the sound to stop before continuing. Is there a way to play a .WAV file and have execution continue even while the sound is playing?
Thanks,
Yazster
Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
This works fine, but the problem I'm having is that when I play a .WAV file, my program waits for the sound to stop before continuing. Is there a way to play a .WAV file and have execution continue even while the sound is playing?
Thanks,
Yazster