diff options
Diffstat (limited to 'alc/context.cpp')
-rw-r--r-- | alc/context.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/alc/context.cpp b/alc/context.cpp index ea806d95..3dff6815 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -553,17 +553,20 @@ void ALCcontext::eax_update_filters() } } -void ALCcontext::eax_on_3d_listener_param_call() +void ALCcontext::eax_commit_sources() { - if (!has_eax()) - return; - std::unique_lock<std::mutex> source_lock{mSourceLock}; - for (auto& source : SourceListEnumerator{mSourceList}) source.eax_commit(); } +void ALCcontext::eax_commit_and_update_sources() +{ + std::unique_lock<std::mutex> source_lock{mSourceLock}; + for (auto& source : SourceListEnumerator{mSourceList}) + source.eax_commit_and_update(); +} + void ALCcontext::eax_set_last_error() noexcept { eax_last_error_ = EAXERR_INVALID_OPERATION; |