aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-07-15 11:54:54 -0700
committerChris Robinson <[email protected]>2022-07-15 11:54:54 -0700
commit7b0776e33f84056179275a4a42cae7dbef9d6a71 (patch)
tree94612e0c5a2a1115b5a4b1dbc41634e0b3029c18 /al
parentaf5d4fb77dd12bee2dd5c4b7feadcbab913d6290 (diff)
Don't pass an EaxCall to initialize_fx_slots
Diffstat (limited to 'al')
-rw-r--r--al/auxeffectslot.cpp12
-rw-r--r--al/auxeffectslot.h8
-rw-r--r--al/eax/fx_slots.cpp12
-rw-r--r--al/eax/fx_slots.h8
4 files changed, 11 insertions, 29 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index aaf9ce4c..162b5137 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -1055,10 +1055,7 @@ EffectSlotSubList::~EffectSlotSubList()
}
#ifdef ALSOFT_EAX
-void ALeffectslot::eax_initialize(
- const EaxCall& call,
- ALCcontext& al_context,
- EaxFxSlotIndexValue index)
+void ALeffectslot::eax_initialize(ALCcontext& al_context, EaxFxSlotIndexValue index)
{
if(index >= EAX_MAX_FXSLOTS)
eax_fail("Index out of range.");
@@ -1066,15 +1063,10 @@ void ALeffectslot::eax_initialize(
mPropsDirty = true;
eax_al_context_ = &al_context;
eax_fx_slot_index_ = index;
- eax_version_ = call.get_version();
+ eax_version_ = eax_al_context_->eax_get_version();
eax_fx_slot_set_defaults();
}
-const EAX50FXSLOTPROPERTIES& ALeffectslot::eax_get_eax_fx_slot() const noexcept
-{
- return eax_;
-}
-
void ALeffectslot::eax_commit()
{
auto df = EaxDirtyFlags{};
diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h
index b8b41174..78b0c95a 100644
--- a/al/auxeffectslot.h
+++ b/al/auxeffectslot.h
@@ -82,12 +82,10 @@ struct ALeffectslot {
#ifdef ALSOFT_EAX
public:
- void eax_initialize(
- const EaxCall& call,
- ALCcontext& al_context,
- EaxFxSlotIndexValue index);
+ void eax_initialize(ALCcontext& al_context, EaxFxSlotIndexValue index);
- const EAX50FXSLOTPROPERTIES& eax_get_eax_fx_slot() const noexcept;
+ const EAX50FXSLOTPROPERTIES& eax_get_eax_fx_slot() const noexcept
+ { return eax_; }
// Returns `true` if all sources should be updated, or `false` otherwise.
bool eax_dispatch(const EaxCall& call)
diff --git a/al/eax/fx_slots.cpp b/al/eax/fx_slots.cpp
index 83de8f78..d04b70df 100644
--- a/al/eax/fx_slots.cpp
+++ b/al/eax/fx_slots.cpp
@@ -28,11 +28,9 @@ public:
} // namespace
-void EaxFxSlots::initialize(
- const EaxCall& call,
- ALCcontext& al_context)
+void EaxFxSlots::initialize(ALCcontext& al_context)
{
- initialize_fx_slots(call, al_context);
+ initialize_fx_slots(al_context);
}
void EaxFxSlots::uninitialize() noexcept
@@ -64,16 +62,14 @@ void EaxFxSlots::fail(
throw EaxFxSlotsException{message};
}
-void EaxFxSlots::initialize_fx_slots(
- const EaxCall& call,
- ALCcontext& al_context)
+void EaxFxSlots::initialize_fx_slots(ALCcontext& al_context)
{
auto fx_slot_index = EaxFxSlotIndexValue{};
for (auto& fx_slot : fx_slots_)
{
fx_slot = eax_create_al_effect_slot(al_context);
- fx_slot->eax_initialize(call, al_context, fx_slot_index);
+ fx_slot->eax_initialize(al_context, fx_slot_index);
fx_slot_index += 1;
}
}
diff --git a/al/eax/fx_slots.h b/al/eax/fx_slots.h
index cb7e0db4..18b2d3ad 100644
--- a/al/eax/fx_slots.h
+++ b/al/eax/fx_slots.h
@@ -14,9 +14,7 @@
class EaxFxSlots
{
public:
- void initialize(
- const EaxCall& call,
- ALCcontext& al_context);
+ void initialize(ALCcontext& al_context);
void uninitialize() noexcept;
@@ -44,9 +42,7 @@ private:
static void fail(
const char* message);
- void initialize_fx_slots(
- const EaxCall& call,
- ALCcontext& al_context);
+ void initialize_fx_slots(ALCcontext& al_context);
}; // EaxFxSlots