From 622de7e59c5d65c5bdf52b0eb7e6592c107ec001 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Wed, 9 May 2001 01:06:42 +0000 Subject: [PATCH] Fixed win2k sound bug --- zsnes/src/win/winlink.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 6c5f1979..7862f77a 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -497,7 +497,14 @@ InitSound() if(DS_OK == DirectSoundCreate(NULL, &lpDirectSound,NULL)) { - if (DS_OK != lpDirectSound->SetCooperativeLevel(hMainWindow, DSSCL_NORMAL)) {SoundEnabled=0; return FALSE;} + if (DS_OK != lpDirectSound->SetCooperativeLevel(hMainWindow, DSSCL_NORMAL)) + { + if (DS_OK != lpDirectSound->SetCooperativeLevel(hMainWindow, DSSCL_EXCLUSIVE)) + { + SoundEnabled=0; + return FALSE; + } + } } else {