mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
dsound-EAX: Disable EAX support by default.
Several older games seem to trigger various bugs when EAX 1 support is enabled.
This commit is contained in:
parent
bbbdc32ff4
commit
2bb0477ca0
@ -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 <sebastian@fds-team.de>
|
||||
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) \
|
||||
|
@ -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 <mark@harmstone.com>
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user