dotfiles/pkgs/osu-wine/patches/0003-thread-characteristic-audio-priority-from-oglf-patchset.patch

13 lines
278 B
Diff
Raw Normal View History

2024-05-08 02:06:54 +07:00
--- 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;
}