From 2a81f32abd8e9c6d9340210b7e7f3bc3f6c320de Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 10 Jun 2022 23:15:13 -0700 Subject: Disable EAX if the Chorus effect is disabled --- alc/alc.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'alc') diff --git a/alc/alc.cpp b/alc/alc.cpp index 73c0b2da..c51eb3c1 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1299,10 +1299,15 @@ void alc_initconfig(void) else eax_g_is_enabled = true; - if(eax_g_is_enabled && DisabledEffects[EAXREVERB_EFFECT]) + if((DisabledEffects[EAXREVERB_EFFECT] || DisabledEffects[CHORUS_EFFECT]) + && eax_g_is_enabled) { eax_g_is_enabled = false; - TRACE("%s\n", "EAX disabled because EAXReverb is disabled."); + TRACE("EAX disabled because %s disabled.\n", + (DisabledEffects[EAXREVERB_EFFECT] && DisabledEffects[CHORUS_EFFECT]) + ? "EAXReverb and Chorus are" : + DisabledEffects[EAXREVERB_EFFECT] ? "EAXReverb is" : + DisabledEffects[CHORUS_EFFECT] ? "Chorus is" : ""); } } #endif // ALSOFT_EAX -- cgit v1.2.3