Stop Looping Sound...

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

Hi group!

Looking for a "best practice" advice here. I'm playing a looping sound (for
an alarm, via coredll) ... when the alarm kicks off, I enable a timer which
shuts it off after a configurable amount of time. What's the best way to
stop this looping sound? Generally you can just play another sound (IE a
blank sound), however, I figure there's a better way to tell the system to
"stop."

Thanks for your ideas,
Brian
 
What method are you using to play the sound?

If you use the PlaySound API call then the accepted way of stopping the
sound is to call PlaySound again with a null filename.

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
 
Back
Top