From d24401c3f3fbed3f0aa7fd5e4777e0d83797fa10 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 5 Aug 2019 12:15:14 -0700 Subject: Move the meters per unit property to the listener --- alc/alu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'alc/alu.cpp') 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; -- cgit v1.2.3