PlaySound(TEXT("sounds/Theme.wav"), NULL, SND_LOOP | SND_ASYNC);
SND_ASYNC The sound is played asynchronously and PlaySound returns immediately after beginning the sound. To terminate an asynchronously played waveform sound, call PlaySound with pszSound set to NULL. |
PlaySound( NULL, NULL, 0 )
will stop it, without the extra file or resource drain.