Results 1 to 2 of 2

Thread: How do you detect if a waveform sound is still playing or not?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    13

    Arrow

    Dim SoundWave as long
    SoundWave = PlaySound(App.Path + "\sound1.wav", 0, SND_ASYNC)

    How do I detect if SoundWave has finished playing?

  2. #2
    Addicted Member KrishnaSantosh's Avatar
    Join Date
    Feb 2001
    Location
    Coimbatore
    Posts
    210
    Open Using mciSendString.
    Call The mciSendString With Status Mode As Argument.

    Ex::

    Public Function IsPlaying() As Boolean
    Static yn As String * 30
    mciSendString "status MP3Play mode", yn, Len(yn), 0
    IsItPlaying = (Mid$(yn, 1, 7) = "playing")
    End Function

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