aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-07-30 10:16:29 -0700
committerChris Robinson <[email protected]>2016-07-30 10:16:29 -0700
commit0c5985374acf121f448cb84e101f8d8f9aebafe6 (patch)
tree19e9f03e6db60d21b27323439c328c5bc4a76885 /Alc/effects
parentd253719ead0034b867eded551a4839b48209572e (diff)
Simplify a format check
Diffstat (limited to 'Alc/effects')
-rw-r--r--Alc/effects/reverb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 7f69e06f..b89b1988 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -961,9 +961,8 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCdevice *Device
props->Reverb.LateReverbPan, gain,
props->Reverb.ReflectionsGain,
props->Reverb.LateReverbGain, State);
- else if(Device->FmtChans == DevFmtBFormat3D || Device->FmtChans == DevFmtAmbi1 ||
- Device->FmtChans == DevFmtAmbi2 || Device->FmtChans == DevFmtAmbi3 ||
- Device->AmbiDecoder)
+ else if(Device->AmbiDecoder || (Device->FmtChans >= DevFmtBFormat3D &&
+ Device->FmtChans <= DevFmtAmbi3))
Update3DPanning(Device, props->Reverb.ReflectionsPan,
props->Reverb.LateReverbPan, gain,
props->Reverb.ReflectionsGain,