From 24f389072afcb33ea2ca1dd185878b4c5922bccb Mon Sep 17 00:00:00 2001 From: tomch Date: Mon, 4 May 2009 22:07:17 +0000 Subject: [PATCH] Fixed SoundCore.cpp's call to GetCaps() --- AppleWin/source/SoundCore.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/AppleWin/source/SoundCore.cpp b/AppleWin/source/SoundCore.cpp index 99e52bf7..327e2102 100644 --- a/AppleWin/source/SoundCore.cpp +++ b/AppleWin/source/SoundCore.cpp @@ -517,17 +517,15 @@ bool DSInit() return false; } -#if 0 DSCAPS DSCaps; - ZeroMemory(&DSCaps, sizeof(DSBCAPS)); - DSCaps.dwSize = sizeof(DSBCAPS); + ZeroMemory(&DSCaps, sizeof(DSCAPS)); + DSCaps.dwSize = sizeof(DSCAPS); hr = g_lpDS->GetCaps(&DSCaps); if(FAILED(hr)) { - DirectSound_ErrorText(hr); - return false; + if(g_fh) fprintf(g_fh, "GetCaps failed (%08X)\n",hr); + // Not fatal: so continue... } -#endif g_bDSAvailable = true;