PlaySound function help to stop music

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.
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
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.