aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudvig Strigeus2001-11-27 18:35:58 +0000
committerLudvig Strigeus2001-11-27 18:35:58 +0000
commit01aef1b5c7fce91df7245753404244c420e60510 (patch)
tree62e087824d27cfb1cf136bdb08576d223e5e9708
parent1c0a7cd2e71e459f37323a25d0adf853ac882a2c (diff)
downloadscummvm-rg350-01aef1b5c7fce91df7245753404244c420e60510.tar.gz
scummvm-rg350-01aef1b5c7fce91df7245753404244c420e60510.tar.bz2
scummvm-rg350-01aef1b5c7fce91df7245753404244c420e60510.zip
fixed sound in GDI version
svn-id: r3507
-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) {