diff options
author | Chris Robinson <[email protected]> | 2022-06-10 23:15:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-06-10 23:15:13 -0700 |
commit | 2a81f32abd8e9c6d9340210b7e7f3bc3f6c320de (patch) | |
tree | 4e107834b25074b5645c086ec8c0163f6f5b6056 | |
parent | 1278d3b84998ad0153a0a0f63a3a6696410f3b2c (diff) |
Disable EAX if the Chorus effect is disabled
-rw-r--r-- | alc/alc.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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 |