PDA

Click to See Complete Forum and Search --> : detecting the end of a sound play API call


FMillion
Sep 15th, 2000, 12:25 PM
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?

Sep 18th, 2000, 11:33 PM
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 :).

Sep 20th, 2000, 12:14 AM
I'm not always logged in, through. Sorry...