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
 

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

Similar Threads

Playsound delay 1
Playing/stopping sounds 4
Slideshow sound fails to loop. 6
how To Play sound 4
Where do these sounds come from? 53
Sound Clip 3
PowerPoint Randomise slides and have an infinite loop 0
Another Sound in Loop problem 5

Back
Top