Playsoundyou need another flag that will not run synchronously. Call it that:
void watersplashsound()
{
PlaySound(TEXT("waterSPLASH.wav"), NULL, SND_FILENAME | SND_ASYNC);
}
Please note: I do not know how to stop the sound until it ends.
source
share