diff options
author | Chris Robinson <[email protected]> | 2020-12-15 17:25:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-15 18:41:50 -0800 |
commit | daf9d464781280d01b50994f1b157448a46dc916 (patch) | |
tree | 4e26a50b748d62ddfec726cdcc27eee502f737f9 /al/listener.cpp | |
parent | 03358a0d8092520788690b7f143a4af098472b3f (diff) |
Use a separate structure for the context/listener params
Diffstat (limited to 'al/listener.cpp')
-rw-r--r-- | al/listener.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/al/listener.cpp b/al/listener.cpp index 1f045d08..cef96fb0 100644 --- a/al/listener.cpp +++ b/al/listener.cpp @@ -419,12 +419,12 @@ END_API_FUNC void UpdateListenerProps(ALCcontext *context) { /* Get an unused proprty container, or allocate a new one as needed. */ - ALlistenerProps *props{context->mFreeListenerProps.load(std::memory_order_acquire)}; + ListenerProps *props{context->mFreeListenerProps.load(std::memory_order_acquire)}; if(!props) - props = new ALlistenerProps{}; + props = new ListenerProps{}; else { - ALlistenerProps *next; + ListenerProps *next; do { next = props->next.load(std::memory_order_relaxed); } while(context->mFreeListenerProps.compare_exchange_weak(props, next, @@ -441,7 +441,7 @@ void UpdateListenerProps(ALCcontext *context) props->MetersPerUnit = listener.mMetersPerUnit; /* Set the new container for updating internal parameters. */ - props = listener.Params.Update.exchange(props, std::memory_order_acq_rel); + props = context->mParams.ListenerUpdate.exchange(props, std::memory_order_acq_rel); if(props) { /* If there was an unused update container, put it back in the |