I use the playsound function to play files in wave format. Wave filenames are read from a text file. I can play several wave files in series. Then I have a pause between series. But if a subsequent series is shorter that any previous series, the old trailing sounds are replayed. How do I "purge" the sound buffer so that older sounds aren't replayed (snd_purge doesn't work, for instance)? Or is there a way to limit playsound to new wave files given? My playsound call looks like this:
PlaySound(FilePathName, NULL, SND_SYNC | SND_FILENAME | SND_NODEFAULT)