aboutsummaryrefslogtreecommitdiffstats
path: root/alc/context.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-07 17:01:20 -0800
committerChris Robinson <[email protected]>2022-02-08 08:21:06 -0800
commitbe80e49f1bb7e09dd67ea6886f19f091bde8a2d7 (patch)
treea77d424a068896412f059ef34dbbfb3b90d9adaa /alc/context.cpp
parentd42077680890fee9e8f150e99bc259435bbe5d44 (diff)
DisabledEffects won't change so EAX can just check it once
Diffstat (limited to 'alc/context.cpp')
-rw-r--r--alc/context.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/alc/context.cpp b/alc/context.cpp
index 2d783ca4..a1b2fc36 100644
--- a/alc/context.cpp
+++ b/alc/context.cpp
@@ -451,9 +451,7 @@ bool ALCcontext::has_eax() const noexcept
bool ALCcontext::eax_is_capable() const noexcept
{
- return
- eax_has_enough_aux_sends() &&
- eax_has_eax_reverb_effect();
+ return eax_has_enough_aux_sends();
}
void ALCcontext::eax_uninitialize() noexcept
@@ -716,23 +714,9 @@ void ALCcontext::eax_ensure_enough_aux_sends() const
}
}
-bool ALCcontext::eax_has_eax_reverb_effect() const noexcept
-{
- return !DisabledEffects[EAXREVERB_EFFECT];
-}
-
-void ALCcontext::eax_ensure_eax_reverb_effect() const
-{
- if (!eax_has_eax_reverb_effect())
- {
- eax_fail("Disabled EAX Reverb Effect.");
- }
-}
-
void ALCcontext::eax_ensure_compatibility()
{
eax_ensure_enough_aux_sends();
- eax_ensure_eax_reverb_effect();
}
unsigned long ALCcontext::eax_detect_speaker_configuration() const