diff options
author | Chris Robinson <[email protected]> | 2023-02-05 10:34:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-02-05 10:34:21 -0800 |
commit | d7cabd2c57025c7f3dad81c22c397ac27183102e (patch) | |
tree | d47ce186a916ed5bf0181c8d014e494a6e7048ca /alc | |
parent | 70c14cd560db819f180073052f4c2bfae5cf3c31 (diff) |
Don't set an EAX version by default for sources
Presuming sources start in a neutral state for EAX effects, that is they're not
affected by EAX by default, there's no need to set an active EAX state for one
until the app sets an EAX property on it. Since the deferred and immediate
properties are stored independently per-version, they can always be set to
defaults, and simply not have a particular version committed as active until
the app sets an EAX property, which will inherently set the active version.
Diffstat (limited to 'alc')
-rw-r--r-- | alc/context.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/alc/context.cpp b/alc/context.cpp index b1b95321..32bd36eb 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -487,7 +487,6 @@ void ALCcontext::eax_initialize() eax_context_commit_air_absorbtion_hf(); eax_update_speaker_configuration(); eax_initialize_fx_slots(); - eax_initialize_sources(); eax_is_initialized_ = true; mPropsDirty = true; @@ -806,14 +805,6 @@ void ALCcontext::eax_initialize_fx_slots() eax_primary_fx_slot_index_ = eax_.guidPrimaryFXSlotID; } -void ALCcontext::eax_initialize_sources() -{ - std::unique_lock<std::mutex> source_lock{mSourceLock}; - auto init_source = [this](ALsource &source) noexcept - { source.eax_initialize(this); }; - ForEachSource(this, init_source); -} - void ALCcontext::eax_update_sources() { std::unique_lock<std::mutex> source_lock{mSourceLock}; |