From 9bb962b93b4753f10f8920a76251031e00d27035 Mon Sep 17 00:00:00 2001 From: dmitrykos Date: Tue, 18 May 2010 17:23:56 +0000 Subject: [PATCH] wasapi: - re-enabled Event-driven mode for Windows 7 x64 platform if application runs as WOW64 process --- src/hostapi/wasapi/pa_win_wasapi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/hostapi/wasapi/pa_win_wasapi.c b/src/hostapi/wasapi/pa_win_wasapi.c index ad27274..3ae9a0d 100644 --- a/src/hostapi/wasapi/pa_win_wasapi.c +++ b/src/hostapi/wasapi/pa_win_wasapi.c @@ -873,11 +873,10 @@ static UINT32 GetWindowsVersion() // ------------------------------------------------------------------------------------------ static BOOL UseWOW64Workaround() { - // note: Excluded OS version check as it is reported that event-driven mode - // fails under Windows 7 as well. Now let's assume any WOW64 process - // requires a wokaround. + // note: WOW64 bug is common to Windows Vista x64, thus we fall back to safe Poll-driven + // method. Windows 7 x64 seems has WOW64 bug fixed. - return (IsWow64()/* && (GetWindowsVersion() & WINDOWS_VISTA_SERVER2008)*/); + return (IsWow64() && (GetWindowsVersion() & WINDOWS_VISTA_SERVER2008)); } // ------------------------------------------------------------------------------------------ -- 2.43.0