aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r--OpenAL32/alEffect.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index 99127fac..3446fbd7 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -1348,7 +1348,12 @@ ALvoid GetReverbEffect(const char *name, ALeffect *effect)
{
int i;
- InitEffectParams(effect, AL_EFFECT_EAXREVERB);
+ if(!DisabledEffects[EAXREVERB])
+ InitEffectParams(effect, AL_EFFECT_EAXREVERB);
+ else if(!DisabledEffects[REVERB])
+ InitEffectParams(effect, AL_EFFECT_REVERB);
+ else
+ InitEffectParams(effect, AL_EFFECT_NULL);
for(i = 0;reverblist[i].name[0];i++)
{
const EFXEAXREVERBPROPERTIES *props;