
Screen Saver and sound files
Sounds like (no pun intended) you're calling sndPlaySound in
~synchronous~ mode, which means it doesn't return (i.e. your app
waits) until the sound has finished playing. Include the SND_ASYNC
flag in the uFlags parameter.
Quote:
>Hello All
>I have a screen saver application where a text changes every 30 seconds
>and scrolls bottom to top. All is fine.
>I would like to add .WAV files to it. I have a timer control and I use
>the sndPlaySound API and i hear the sound. But the problem is when
>Sound plays my animation stops moving, and when the Mouse Move happens,
>my application closes only after the wav file ends.
>Any help is appreciated.
>Thanks
>Sue..
>Sent via Deja.com
>http://www.deja.com/
-Tom
(please post replies to the newsgroup)