Pausing Sound

G

Guest

I use the function PlaySound(FileName, NULL, SND_FILENAME | SND_ASYNC |
SND_NODEFAULT) to play a .WAV sound file in my program. How do I pause it?
Is there such function as PauseSound in Visual C++?

Thank you,
 
W

William DePalo [MVP VC++]

LoAnn said:
I use the function PlaySound(FileName, NULL, SND_FILENAME | SND_ASYNC |
SND_NODEFAULT) to play a .WAV sound file in my program. How do I pause
it?
Is there such function as PauseSound in Visual C++?

Your question is off-topic. You'll find multimedia help in the group

microsoft.public.win32.programmer.mmedia

While you aare here, note that PlaySound() exists for those cases where your
needs are minimal. Of course, there are more capable functions available as
well.

If instead of pause, you'd be willing to accept stop, then you can use NULL
as the first parameter to PlaySound().

Regards,
Will
 

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