aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.h
diff options
context:
space:
mode:
authorBoris I. Bendovsky <[email protected]>2022-07-15 15:14:55 +0300
committerBoris I. Bendovsky <[email protected]>2022-07-17 21:06:41 +0300
commit7e9c0285b45d9f7b3af9c72fc62fb1e00d18fe70 (patch)
treec49490b1c783285412229a54dee300303a1453cd /al/auxeffectslot.h
parent6f3500f458bdcce254d65095ed949119302b6c38 (diff)
[EAX_SOURCE] Fix source's occlusion and exclusion contribution
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").
Diffstat (limited to 'al/auxeffectslot.h')
-rw-r--r--al/auxeffectslot.h3
1 files changed, 3 insertions, 0 deletions
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.