diff options
author | Chris Robinson <[email protected]> | 2022-02-08 22:41:44 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-08 22:41:44 -0800 |
commit | 3c9a705210add5aaebd95702035b8ab1fd18fc22 (patch) | |
tree | 77435f32ae02d53d3bcd9146164a96368d1a1b38 /al/source.cpp | |
parent | 256ea81dbe07f02d008908c90b99896f8eaaf2a5 (diff) |
Handle AirAbsorptionGainHF as a native context property
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/al/source.cpp b/al/source.cpp index 8361f83e..027cd535 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -3741,12 +3741,6 @@ void ALsource::eax_update( eax_update_primary_fx_slot_id(); } } - - if (dirty_flags.air_absorption_hf) - { - eax_set_air_absorption_factor(); - mPropsDirty.set(std::memory_order_release); - } } void ALsource::eax_commit() @@ -5364,10 +5358,7 @@ void ALsource::eax_set_room_rolloff_factor() void ALsource::eax_set_air_absorption_factor() { - const auto air_absorption_factor = - eax_al_context_->eax_get_air_absorption_factor() * eax_.source.flAirAbsorptionFactor; - - AirAbsorptionFactor = air_absorption_factor; + AirAbsorptionFactor = eax_.source.flAirAbsorptionFactor; } void ALsource::eax_set_direct_hf_auto_flag() |