win midi: set a higher priority for the player thread

This commit is contained in:
Roman Fomin 2021-09-03 01:20:32 +07:00
parent 070cb84a41
commit cff96ceca2

View File

@ -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)