From cff96ceca269d55b2d7d52afd5e946995f0b7111 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Fri, 3 Sep 2021 01:20:32 +0700 Subject: [PATCH] win midi: set a higher priority for the player thread --- Source/i_winmusic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/i_winmusic.c b/Source/i_winmusic.c index ab78c46a..67618033 100644 --- a/Source/i_winmusic.c +++ b/Source/i_winmusic.c @@ -413,6 +413,7 @@ void I_WIN_PlaySong(boolean looping) } hPlayerThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)PlayerProc, 0, 0, 0); + SetThreadPriority(hPlayerThread, THREAD_PRIORITY_TIME_CRITICAL); } void I_WIN_RegisterSong(void *data, int len)