aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-05 12:15:14 -0700
committerChris Robinson <[email protected]>2019-08-05 12:15:14 -0700
commitd24401c3f3fbed3f0aa7fd5e4777e0d83797fa10 (patch)
tree292d6a7d4e928c70ee6785ece26d04bcb2d1b44b /alc/alu.cpp
parent3154a915b1f811416f3c29c6af0c0f13fc3acd3e (diff)
Move the meters per unit property to the listener
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 4044c712..f2c843fe 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -271,8 +271,6 @@ bool CalcContextParams(ALCcontext *Context)
if(!props) return false;
ALlistener &Listener = Context->mListener;
- Listener.Params.MetersPerUnit = props->MetersPerUnit;
-
Listener.Params.DopplerFactor = props->DopplerFactor;
Listener.Params.SpeedOfSound = props->SpeedOfSound * props->DopplerVelocity;
@@ -314,6 +312,7 @@ bool CalcListenerParams(ALCcontext *Context)
Listener.Params.Velocity = Listener.Params.Matrix * vel;
Listener.Params.Gain = props->Gain * Context->mGainBoost;
+ Listener.Params.MetersPerUnit = props->MetersPerUnit;
AtomicReplaceHead(Context->mFreeListenerProps, props);
return true;