Results 1 to 4 of 4

Thread: Notification when sound is done playing

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Posts
    7

    Post

    Does anyone know how to get a message back from Winmm/MCI when a sound has completed play?

  2. #2
    Member
    Join Date
    Sep 1999
    Location
    UK
    Posts
    45

    Post

    How are you getting the sound to play?

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Posts
    7

    Post

    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!

  4. #4
    Junior Member
    Join Date
    Jan 1999
    Location
    Pierre, SD USA
    Posts
    23

    Post

    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
  •  



Click Here to Expand Forum to Full Width