aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-19 17:41:42 -0800
committerChris Robinson <[email protected]>2012-02-19 17:41:42 -0800
commit799f8da3337968008487e8914698b13b0c86b07c (patch)
treef68090f684386d3a16a7cc73785bc2efb10517de
parent40bb8bd9dc53d97d6cf1afbced2c9f945e62481c (diff)
Recognize "none" to disable the default reverb
-rw-r--r--OpenAL32/alEffect.c6
-rw-r--r--alsoftrc.sample8
2 files changed, 10 insertions, 4 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])
diff --git a/alsoftrc.sample b/alsoftrc.sample
index 195530e0..c7cdceb3 100644
--- a/alsoftrc.sample
+++ b/alsoftrc.sample
@@ -147,10 +147,10 @@
## default-reverb:
# A reverb preset that applies by default to all sources on send 0
# (applications that set their own slots on send 0 will override this).
-# Available presets are: Generic, PaddedCell, Room, Bathroom, Livingroom,
-# Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar, CarpetedHallway,
-# Hallway, StoneCorridor, Alley, Forest, City, Moutains, Quarry, Plain,
-# ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
+# Available presets are: None, Generic, PaddedCell, Room, Bathroom,
+# Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
+# CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
+# Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
#default-reverb =
## trap-alc-error: