aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-09-22 05:42:04 -0700
committerChris Robinson <[email protected]>2017-09-22 05:42:04 -0700
commit369f52a0d76e1be1407441ca0bb67343cffa95f3 (patch)
treeab40abba1c463603f9401a7dc08cf207379b9794 /Alc/effects/reverb.c
parent9007b7735519b049668ccd0c787ef52a00934386 (diff)
Add an option to ignore the app's speed of sound for reverb decay
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r--Alc/effects/reverb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 455a433a..ee7954c4 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -1362,8 +1362,8 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCcontext *Conte
hfRatio = props->Reverb.DecayHFRatio;
if(props->Reverb.DecayHFLimit && props->Reverb.AirAbsorptionGainHF < 1.0f)
hfRatio = CalcLimitedHfRatio(hfRatio, props->Reverb.AirAbsorptionGainHF,
- props->Reverb.DecayTime, Listener->Params.SpeedOfSound *
- Listener->Params.MetersPerUnit);
+ props->Reverb.DecayTime, Listener->Params.ReverbSpeedOfSound
+ );
/* Calculate the LF/HF decay times. */
lfDecayTime = clampf(props->Reverb.DecayTime * props->Reverb.DecayLFRatio,