diff options
author | Chris Robinson <[email protected]> | 2012-02-19 17:41:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-19 17:41:42 -0800 |
commit | 799f8da3337968008487e8914698b13b0c86b07c (patch) | |
tree | f68090f684386d3a16a7cc73785bc2efb10517de /OpenAL32/alEffect.c | |
parent | 40bb8bd9dc53d97d6cf1afbced2c9f945e62481c (diff) |
Recognize "none" to disable the default reverb
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r-- | OpenAL32/alEffect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c index aebda3c7..90e33a02 100644 --- a/OpenAL32/alEffect.c +++ b/OpenAL32/alEffect.c @@ -1455,6 +1455,12 @@ ALvoid GetReverbEffect(const char *name, ALeffect *effect) { int i; + if(strcasecmp(name, "none") == 0) + { + InitEffectParams(effect, AL_EFFECT_NULL); + return; + } + if(!DisabledEffects[EAXREVERB]) InitEffectParams(effect, AL_EFFECT_EAXREVERB); else if(!DisabledEffects[REVERB]) |