|
-
Dec 6th, 2000, 10:55 AM
#5
Frenzied Member
Take advantage of the Done event.
Before I issue the play command, I set a flag and then reset it in the Done event routine.
[code]
somewhere in the code of my doorprize drawing app:
If frmMain.mnuSound.Checked = True Then
bWaveFinished = False
' select a sound clip
iFileNum = iSelection Mod 8
MMControl.filename = App.Path & "\WINNER" & iFileNum & ".WAV"
MMControl.Command = "Open"
MMControl.Command = "Play"
While bWaveFinished = False
DoEvents
Wend
End If
.
.
Private Sub MMControl_Done(NotifyCode As Integer)
' Close the MCI
MMControl.Command = "Close"
bWaveFinished = True
End Sub
[\code]
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
|