diff options
author | Chris Robinson <[email protected]> | 2012-01-20 15:56:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-01-20 15:56:32 -0800 |
commit | 00dc3088c8eee5a1ee519f16d1ce4ca367259050 (patch) | |
tree | 6c376b3cb3f3fa52d54933dbf45882f4c3cee47b /OpenAL32/alEffect.c | |
parent | e52e4b1a8c2dbf4db4717ce188e9bfd79c27a723 (diff) |
Honor the disabled effects for the default reverb
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r-- | OpenAL32/alEffect.c | 7 |
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; |