mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
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:
parent
cc6626e53a
commit
65bfaa31f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user