From 3c9a705210add5aaebd95702035b8ab1fd18fc22 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 8 Feb 2022 22:41:44 -0800 Subject: Handle AirAbsorptionGainHF as a native context property --- al/source.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'al/source.cpp') 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() -- cgit v1.2.3