If an application calls PlaySound with a SND_LOOP flag, the sound plays continuously until PlaySound is called with a NULL ...

If an application calls PlaySound with a SND_LOOP flag, the sound plays continuously until PlaySound is called with a NULL sound name. Windows 9x will automatically stop the sound if a different sound is played. This compatibility fix will catch all PlaySound calls, remember the current sound and automatically stop it if a different sound is to be played. Applies to: Windows 95, Windows 98