vincentnl
Active member
I am programming a schoolproject, which is to be for the elderly.
It involves a lot of spoken text (wav files).
But when the user clicks something, the wavfile should stop playing , and another should play.
The solution proposed on this forum :
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
works for playing wav-files, but I can not stop a wav-file that is playing.
What is the best solution for this?
It involves a lot of spoken text (wav files).
But when the user clicks something, the wavfile should stop playing , and another should play.
The solution proposed on this forum :
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
works for playing wav-files, but I can not stop a wav-file that is playing.
What is the best solution for this?