I am writing an application that plays sound, using the "playsound" api. When playing sounds it uses the "loop/async" flags.

Is there a way of stopping the current sound from playing without playing the same sound again?

I have thought of recording a silent WAV file - but this seems over the top. I have played with the SND_PURGE flag - but can't seem to get it to work.

Thanks