Search:
Forum
Beginners
PlaySound function help to stop music
PlaySound function help to stop music
Mar 13, 2019 at 7:01pm UTC
Chris26
(18)
Hey,
i use the PlaySound function with the mmsystem.h include but i have 1 question. I know how to play a sound for example:
PlaySound(TEXT(
"close.wav"
), NULL, SND_ASYNC);
How can i stop the sound after x Seconds? or without waiting.
Mar 13, 2019 at 7:27pm UTC
closed account (
367kGNh0
)
make a sequence, a lambda function for stopping audio, then call this action after a certain delay time. thing is I know just how to do this in cocosc++, but I have never heard of mmsystem.h
Mar 14, 2019 at 2:07am UTC
mbozzi
(3932)
PlaySound(NULL, NULL, SND_ASYNC);
You should have read the manual page before asking.
https://docs.microsoft.com/en-us/previous-versions/dd743680(v%3Dvs.85)
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs