From 7e9c0285b45d9f7b3af9c72fc62fb1e00d18fe70 Mon Sep 17 00:00:00 2001 From: "Boris I. Bendovsky" Date: Fri, 15 Jul 2022 15:14:55 +0300 Subject: [EAX_SOURCE] Fix source's occlusion and exclusion contribution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Source's oclussion and exclusion properties should be taken into account only for listener's environment (see p. 16, p. 56, pp. 62-63 and p. 64 of "EAX® 4.0 Programmer’s Guide"). --- al/auxeffectslot.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'al/auxeffectslot.h') diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h index bf2060fe..9b6403f4 100644 --- a/al/auxeffectslot.h +++ b/al/auxeffectslot.h @@ -84,6 +84,7 @@ struct ALeffectslot { public: void eax_initialize(ALCcontext& al_context, EaxFxSlotIndexValue index); + EaxFxSlotIndexValue eax_get_index() const noexcept { return eax_fx_slot_index_; } const EAX50FXSLOTPROPERTIES& eax_get_eax_fx_slot() const noexcept { return eax_; } @@ -306,6 +307,8 @@ private: void eax4_fx_slot_set_all(const EaxCall& call); void eax5_fx_slot_set_all(const EaxCall& call); + bool eax_fx_slot_should_update_sources() const noexcept; + // Returns `true` if all sources should be updated, or `false` otherwise. bool eax4_fx_slot_set(const EaxCall& call); // Returns `true` if all sources should be updated, or `false` otherwise. -- cgit v1.2.3