Mattking: Fixed PLAY command to play the .wav file asynchronously so it no longer "pauses" Rainmeter while sound is playing.

This commit is contained in:
jsmorley 2010-03-04 22:53:56 +00:00
parent cc6626e53a
commit 65bfaa31f0

View File

@ -1719,7 +1719,7 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
// Check for build-ins
if (wcsncmp(L"PLAY ", strCommand.c_str(), 5) == 0)
{
BOOL ret = PlaySound(strCommand.c_str() + 5, NULL, SND_FILENAME);
BOOL ret = PlaySound(strCommand.c_str() + 5, NULL, SND_FILENAME | SND_ASYNC);
return;
}
else if (wcsncmp(L"PLAYSTOP", strCommand.c_str(), 8) == 0)