Click to See Complete Forum and Search --> : Notification when sound is done playing
Dan F.
Oct 1st, 1999, 03:14 AM
Does anyone know how to get a message back from Winmm/MCI when a sound has completed play?
steviep
Oct 5th, 1999, 08:46 PM
How are you getting the sound to play?
Dan F.
Oct 6th, 1999, 03:06 AM
Sometimes like the following:
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Const SND_ASYNC = &H1
Private Sub Command1_Click()
sndPlaySound "C:\Files\Sound1.wav", SND_ASYNC
sndPlaySound "C:\Files\Sound2.wav", SND_ASYNC
End Sub
...or
Sometimes I use an ActiveX control that will give me notification, but the distribution license on the control is expensive. So I'd rather use the MCI without the cost of the control.
Thanks!
barrie
Oct 7th, 1999, 02:48 AM
Just out of curiosity, why are you not using the multimedia control built into VB? It returns notification when it is done.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.