2015-06-03 18:13:01 +00:00
|
|
|
diff --git a/Alc/backends/winmm.c b/Alc/backends/winmm.c
|
2015-10-19 21:16:17 +00:00
|
|
|
index bf97ef2..1cd5774 100644
|
2015-06-03 18:13:01 +00:00
|
|
|
--- a/Alc/backends/winmm.c
|
|
|
|
+++ b/Alc/backends/winmm.c
|
2015-10-19 21:16:17 +00:00
|
|
|
@@ -221,7 +221,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))
|
2015-10-19 21:16:17 +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;
|
2015-10-19 21:16:17 +00:00
|
|
|
@@ -506,7 +506,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))
|
2015-10-19 21:16:17 +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;
|