Recognize "none" to disable the default reverb
This commit is contained in:
parent
40bb8bd9dc
commit
799f8da333
@ -1455,6 +1455,12 @@ ALvoid GetReverbEffect(const char *name, ALeffect *effect)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if(strcasecmp(name, "none") == 0)
|
||||||
|
{
|
||||||
|
InitEffectParams(effect, AL_EFFECT_NULL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(!DisabledEffects[EAXREVERB])
|
if(!DisabledEffects[EAXREVERB])
|
||||||
InitEffectParams(effect, AL_EFFECT_EAXREVERB);
|
InitEffectParams(effect, AL_EFFECT_EAXREVERB);
|
||||||
else if(!DisabledEffects[REVERB])
|
else if(!DisabledEffects[REVERB])
|
||||||
|
@ -147,10 +147,10 @@
|
|||||||
## default-reverb:
|
## default-reverb:
|
||||||
# A reverb preset that applies by default to all sources on send 0
|
# 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).
|
# (applications that set their own slots on send 0 will override this).
|
||||||
# Available presets are: Generic, PaddedCell, Room, Bathroom, Livingroom,
|
# Available presets are: None, Generic, PaddedCell, Room, Bathroom,
|
||||||
# Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar, CarpetedHallway,
|
# Livingroom, Stoneroom, Auditorium, ConcertHall, Cave, Arena, Hangar,
|
||||||
# Hallway, StoneCorridor, Alley, Forest, City, Moutains, Quarry, Plain,
|
# CarpetedHallway, Hallway, StoneCorridor, Alley, Forest, City, Moutains,
|
||||||
# ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
|
# Quarry, Plain, ParkingLot, SewerPipe, Underwater, Drugged, Dizzy, Psychotic.
|
||||||
#default-reverb =
|
#default-reverb =
|
||||||
|
|
||||||
## trap-alc-error:
|
## trap-alc-error:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user