dotfiles/pkgs/osu-wine/patches/0003-thread-characteristic-audio-priority-from-oglf-patchset.patch
2024-05-15 08:35:49 +07:00

13 lines
278 B
Diff

--- a/dlls/avrt/main.c
+++ b/dlls/avrt/main.c
@@ -70,6 +70,9 @@
return NULL;
}
+ if (!wcscmp(name, L"Audio") || !wcscmp(name, L"Pro Audio"))
+ SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
+
return (HANDLE)0x12345678;
}