From 2bb0477ca0176f730b6bcc055a2c33d18f75803b Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Mon, 13 Apr 2015 00:37:54 +0200 Subject: [PATCH] dsound-EAX: Disable EAX support by default. Several older games seem to trigger various bugs when EAX 1 support is enabled. --- ...ound-Allow-disabling-of-EAX-support-in-the-registr.patch | 6 +++--- ...winecfg-Add-checkbox-to-enable-disable-EAX-support.patch | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/patches/dsound-EAX/0019-dsound-Allow-disabling-of-EAX-support-in-the-registr.patch b/patches/dsound-EAX/0019-dsound-Allow-disabling-of-EAX-support-in-the-registr.patch index 2642669b..82961ad8 100644 --- a/patches/dsound-EAX/0019-dsound-Allow-disabling-of-EAX-support-in-the-registr.patch +++ b/patches/dsound-EAX/0019-dsound-Allow-disabling-of-EAX-support-in-the-registr.patch @@ -1,4 +1,4 @@ -From 937d52434c44a50628f5b96b4e08a8e24f6df62b Mon Sep 17 00:00:00 2001 +From b69c6b88a3628dcaf0f5520f2a33a47013c50aef Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 5 Apr 2015 19:13:18 +0200 Subject: dsound: Allow disabling of EAX support in the registry. @@ -46,14 +46,14 @@ index 3641e32..ca6a5b5 100644 return E_PROP_ID_UNSUPPORTED; diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c -index 1f512a4..4b45528 100644 +index 1f512a4..4b7e7b0 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -95,8 +95,12 @@ WCHAR wine_vxd_drv[] = { 'w','i','n','e','m','m','.','v','x','d', 0 }; int ds_hel_buflen = 32768 * 2; int ds_snd_queue_max = 10; int ds_hq_buffers_max = 4; -+BOOL ds_eax_enabled = TRUE; ++BOOL ds_eax_enabled = FALSE; static HINSTANCE instance; +#define IS_OPTION_TRUE(ch) \ diff --git a/patches/winecfg-Staging/0003-winecfg-Add-checkbox-to-enable-disable-EAX-support.patch b/patches/winecfg-Staging/0003-winecfg-Add-checkbox-to-enable-disable-EAX-support.patch index d64fa4d0..321f7c0b 100644 --- a/patches/winecfg-Staging/0003-winecfg-Add-checkbox-to-enable-disable-EAX-support.patch +++ b/patches/winecfg-Staging/0003-winecfg-Add-checkbox-to-enable-disable-EAX-support.patch @@ -1,4 +1,4 @@ -From b31377088e643b14e75df6bd302299d35587998e Mon Sep 17 00:00:00 2001 +From 9732684163cf035ea9fca8ac8700562159150190 Mon Sep 17 00:00:00 2001 From: Mark Harmstone Date: Sun, 5 Apr 2015 14:16:11 +0100 Subject: winecfg: Add checkbox to enable/disable EAX support. @@ -22,7 +22,7 @@ index 4b21d16..a78d9af 100644 /* About tab */ #define IDC_ABT_OWNER 8432 diff --git a/programs/winecfg/staging.c b/programs/winecfg/staging.c -index 40b6642..ee09855 100644 +index 40b6642..5a4dd16 100644 --- a/programs/winecfg/staging.c +++ b/programs/winecfg/staging.c @@ -71,10 +71,27 @@ static void vaapi_set(BOOL status) @@ -35,7 +35,7 @@ index 40b6642..ee09855 100644 +static BOOL eax_get(void) +{ + BOOL ret; -+ char *value = get_reg_key(config_key, keypath("DirectSound"), "EAXEnabled", "Y"); ++ char *value = get_reg_key(config_key, keypath("DirectSound"), "EAXEnabled", "N"); + ret = IS_OPTION_TRUE(*value); + HeapFree(GetProcessHeap(), 0, value); + return ret;