|
-
Oct 1st, 1999, 03:14 AM
#1
Thread Starter
New Member
Does anyone know how to get a message back from Winmm/MCI when a sound has completed play?
-
Oct 5th, 1999, 08:46 PM
#2
Member
How are you getting the sound to play?
-
Oct 6th, 1999, 03:06 AM
#3
Thread Starter
New Member
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!
-
Oct 7th, 1999, 02:48 AM
#4
Junior Member
Just out of curiosity, why are you not using the multimedia control built into VB? It returns notification when it is done.
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
|