aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects/reverb.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-04-08 20:46:41 -0700
committerChris Robinson <[email protected]>2023-04-08 20:46:41 -0700
commit3853e31feb6662fa592b7f88ed5f09fee99db12e (patch)
tree3d3600646fb2c8a36fd83d6f2dc2e2a4c51f2ef9 /al/effects/reverb.cpp
parent7c94fc24f9fc532d7ed150eb99eff0c49edd6bce (diff)
Reorder some struct fields for consistency
Diffstat (limited to 'al/effects/reverb.cpp')
-rw-r--r--al/effects/reverb.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/al/effects/reverb.cpp b/al/effects/reverb.cpp
index 7f0be980..440d7b4e 100644
--- a/al/effects/reverb.cpp
+++ b/al/effects/reverb.cpp
@@ -113,12 +113,6 @@ void Reverb_setParamf(EffectProps *props, ALenum param, float val)
props->Reverb.LateReverbDelay = val;
break;
- case AL_EAXREVERB_AIR_ABSORPTION_GAINHF:
- if(!(val >= AL_EAXREVERB_MIN_AIR_ABSORPTION_GAINHF && val <= AL_EAXREVERB_MAX_AIR_ABSORPTION_GAINHF))
- throw effect_exception{AL_INVALID_VALUE, "EAX Reverb air absorption gainhf out of range"};
- props->Reverb.AirAbsorptionGainHF = val;
- break;
-
case AL_EAXREVERB_ECHO_TIME:
if(!(val >= AL_EAXREVERB_MIN_ECHO_TIME && val <= AL_EAXREVERB_MAX_ECHO_TIME))
throw effect_exception{AL_INVALID_VALUE, "EAX Reverb echo time out of range"};
@@ -143,6 +137,12 @@ void Reverb_setParamf(EffectProps *props, ALenum param, float val)
props->Reverb.ModulationDepth = val;
break;
+ case AL_EAXREVERB_AIR_ABSORPTION_GAINHF:
+ if(!(val >= AL_EAXREVERB_MIN_AIR_ABSORPTION_GAINHF && val <= AL_EAXREVERB_MAX_AIR_ABSORPTION_GAINHF))
+ throw effect_exception{AL_INVALID_VALUE, "EAX Reverb air absorption gainhf out of range"};
+ props->Reverb.AirAbsorptionGainHF = val;
+ break;
+
case AL_EAXREVERB_HFREFERENCE:
if(!(val >= AL_EAXREVERB_MIN_HFREFERENCE && val <= AL_EAXREVERB_MAX_HFREFERENCE))
throw effect_exception{AL_INVALID_VALUE, "EAX Reverb hfreference out of range"};
@@ -257,10 +257,6 @@ void Reverb_getParamf(const EffectProps *props, ALenum param, float *val)
*val = props->Reverb.LateReverbDelay;
break;
- case AL_EAXREVERB_AIR_ABSORPTION_GAINHF:
- *val = props->Reverb.AirAbsorptionGainHF;
- break;
-
case AL_EAXREVERB_ECHO_TIME:
*val = props->Reverb.EchoTime;
break;
@@ -277,6 +273,10 @@ void Reverb_getParamf(const EffectProps *props, ALenum param, float *val)
*val = props->Reverb.ModulationDepth;
break;
+ case AL_EAXREVERB_AIR_ABSORPTION_GAINHF:
+ *val = props->Reverb.AirAbsorptionGainHF;
+ break;
+
case AL_EAXREVERB_HFREFERENCE:
*val = props->Reverb.HFReference;
break;