aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-01-25 23:45:00 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-01-25 23:45:00 +0900
commit0eaf8583b7eda915477a931df746173d9a9e5df9 (patch)
tree40d121e6e2c393cd103167a4eba8122541ebcfc6 /win32
parent3a59fb7b1c7c68c70c3725b086faeeb51236f720 (diff)
set directsound thread priority (horribly glitches on actual win10 without this)
Diffstat (limited to 'win32')
-rw-r--r--win32/dsoundout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/dsoundout.c b/win32/dsoundout.c
index 6fda977..0f7ebc4 100644
--- a/win32/dsoundout.c
+++ b/win32/dsoundout.c
@@ -129,6 +129,7 @@ struct dsound_state *dsound_init(HWND hwnd, unsigned srate, unsigned sectlen,
dsound->e_posnotf = CreateEventW(NULL, FALSE, FALSE, L"SNDNOTF");
dsound->t_update = CreateThread(NULL, 0, bufupdatethread, dsound, 0, NULL);
+ SetThreadPriority(dsound->t_update, THREAD_PRIORITY_HIGHEST);
dsound->sectlen = sectlen;
dsound->playing = 0;
dsound->terminate = 0;