2015-06-03 18:13:01 +00:00
|
|
|
diff --git a/Alc/backends/winmm.c b/Alc/backends/winmm.c
|
2017-01-07 11:55:05 +00:00
|
|
|
index 9d8f8e9..8c8e44a 100644
|
2015-06-03 18:13:01 +00:00
|
|
|
--- a/Alc/backends/winmm.c
|
|
|
|
+++ b/Alc/backends/winmm.c
|
2017-01-07 11:55:05 +00:00
|
|
|
@@ -219,7 +219,7 @@ FORCE_ALIGN static int ALCwinmmPlayback_mixerProc(void *arg)
|
2015-06-03 18:13:01 +00:00
|
|
|
SetRTPriority();
|
|
|
|
althrd_setname(althrd_current(), MIXER_THREAD_NAME);
|
|
|
|
|
|
|
|
- while(GetMessage(&msg, NULL, 0, 0))
|
2017-01-07 11:55:05 +00:00
|
|
|
+ if (!self->killNow) while(GetMessage(&msg, NULL, 0, 0))
|
2015-06-03 18:13:01 +00:00
|
|
|
{
|
|
|
|
if(msg.message != WOM_DONE)
|
|
|
|
continue;
|
2017-01-07 11:55:05 +00:00
|
|
|
@@ -504,7 +504,7 @@ static int ALCwinmmCapture_captureProc(void *arg)
|
2015-06-03 18:13:01 +00:00
|
|
|
|
|
|
|
althrd_setname(althrd_current(), RECORD_THREAD_NAME);
|
|
|
|
|
|
|
|
- while(GetMessage(&msg, NULL, 0, 0))
|
2017-01-07 11:55:05 +00:00
|
|
|
+ if (!self->killNow) while(GetMessage(&msg, NULL, 0, 0))
|
2015-06-03 18:13:01 +00:00
|
|
|
{
|
|
|
|
if(msg.message != WIM_DATA)
|
|
|
|
continue;
|