From 65bfaa31f0e3b195032eaed25b5c7bdc6e974b35 Mon Sep 17 00:00:00 2001 From: jsmorley Date: Thu, 4 Mar 2010 22:53:56 +0000 Subject: [PATCH] Mattking: Fixed PLAY command to play the .wav file asynchronously so it no longer "pauses" Rainmeter while sound is playing. --- Library/Rainmeter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index c9d667c8..d8ad7b89 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -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)