Recognize "none" to disable the default reverb

This commit is contained in:
Chris Robinson 2012-02-19 17:41:42 -08:00
parent 40bb8bd9dc
commit 799f8da333
2 changed files with 10 additions and 4 deletions

View File

@ -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])

View File

@ -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: