I have written a small program in which playing two or more files one after another is needed.
This is the Declaration in my BAS Module:
And this is the code I use to play the Audio Files:
It can play files one after another, but the problem is that it causes the form to hang or freeze while the file is being played.
How can I let the program to play files in order, but I can stop playing the Audio Files anytime I wish?
Thank you in advance.
This is the Declaration in my BAS Module:
Code:
Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
And this is the code I use to play the Audio Files:
Code:
sndPlaySound32 FileName, 0
How can I let the program to play files in order, but I can stop playing the Audio Files anytime I wish?
Thank you in advance.
Comment