Stop Looping Sound...

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
 
P

Peter Foot [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top