Results 1 to 3 of 3

Thread: detecting the end of a sound play API call

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    23

    Question

    Here's my question:

    I am using the (I believe) sndPLaySound API call to play
    a .WAV file stored in a .RES file. My only problem is this:
    I want the sound to play asynchronously, but still be able to do something when the file is finished playing. For example, I want a wav file to play, the user CAN cancel if if he/she chooses, but otherwise something would happen at the end of the WAV file's playing.

    In short, how can I detect the end of the playing of a .WAV file when using asynchronous play through the API call?

  2. #2
    Guest
    Well, you don't need to do anything. The sound will automatically stop if the ASYNC flag is invoked.

    By your post I can see that you are probably playing SYNC because the user CAN stop. You can detect messages that will be sent. It's too complicated to explain vhere, so I might be able to explain over E-mail or ICQ, which is 91697293. Your choice .

  3. #3
    Guest
    I'm not always logged in, through. Sorry...

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