aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--windows.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/windows.cpp b/windows.cpp
index 09070dd25f..c0753bb35e 100644
--- a/windows.cpp
+++ b/windows.cpp
@@ -872,8 +872,8 @@ void WndMan::sound_init() {
wfx.wBitsPerSample = BITS_PER_SAMPLE;
wfx.nBlockAlign = BITS_PER_SAMPLE * 1 / 8;
-// CreateThread(NULL, 0, (unsigned long (__stdcall *)(void *))&sound_thread, this, 0, &_threadId);
-// SetThreadPriority((void*)_threadId, THREAD_PRIORITY_HIGHEST);
+ CreateThread(NULL, 0, (unsigned long (__stdcall *)(void *))&sound_thread, this, 0, &_threadId);
+ SetThreadPriority((void*)_threadId, THREAD_PRIORITY_HIGHEST);
_event = CreateEvent(NULL, false, false, NULL);
@@ -890,8 +890,6 @@ DWORD _stdcall WndMan::sound_thread(WndMan *wm) {
bool signaled;
int time = GetTickCount(), cur;
- return 0;
-
while (1) {
cur = GetTickCount();
while (time < cur) {