aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-05 11:37:05 -0700
committerChris Robinson <[email protected]>2019-08-05 11:37:05 -0700
commit3154a915b1f811416f3c29c6af0c0f13fc3acd3e (patch)
treeca8f86ca621f06037a360513f30748dac87fe3a0 /alc/alc.cpp
parent3bc9490fd2861bdb28951bae5af37500e93de7ad (diff)
Remove the ReverbSpeedOfSound hack
No other effect depends on context or listener properties, so reverb being the only exception for speed of sound and meters per unit was putting extra work on the effect engine for no real reason. Especially since the reverb decay time should be the time actual time to decay irrespective of other settings.
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index f66654c2..ca7ce4fb 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2448,8 +2448,6 @@ void ALCcontext::init()
mListener.Params.MetersPerUnit = mMetersPerUnit;
mListener.Params.DopplerFactor = mDopplerFactor;
mListener.Params.SpeedOfSound = mSpeedOfSound * mDopplerVelocity;
- mListener.Params.ReverbSpeedOfSound = mListener.Params.SpeedOfSound *
- mListener.Params.MetersPerUnit;
mListener.Params.SourceDistanceModel = mSourceDistanceModel;
mListener.Params.mDistanceModel = mDistanceModel;