diff options
author | Chris Robinson <[email protected]> | 2022-02-08 20:43:05 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-08 20:43:05 -0800 |
commit | 256ea81dbe07f02d008908c90b99896f8eaaf2a5 (patch) | |
tree | e58348ee7808310f7c231934b91ad399c3af4d62 /al/state.cpp | |
parent | de87cc98d5eef40eeb565b781ac90c1c6f55b42e (diff) |
Combine listener and context updates
Diffstat (limited to 'al/state.cpp')
-rw-r--r-- | al/state.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/al/state.cpp b/al/state.cpp index 6da55d6f..7d69e962 100644 --- a/al/state.cpp +++ b/al/state.cpp @@ -935,6 +935,14 @@ void UpdateContextProps(ALCcontext *context) } /* Copy in current property values. */ + ALlistener &listener = context->mListener; + props->Position = listener.Position; + props->Velocity = listener.Velocity; + props->OrientAt = listener.OrientAt; + props->OrientUp = listener.OrientUp; + props->Gain = listener.Gain; + props->MetersPerUnit = listener.mMetersPerUnit; + props->DopplerFactor = context->mDopplerFactor; props->DopplerVelocity = context->mDopplerVelocity; props->SpeedOfSound = context->mSpeedOfSound; |