aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects/modulator.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-07 10:17:13 -0800
committerChris Robinson <[email protected]>2022-02-07 10:17:13 -0800
commit0c507b5c621993206d94fc3776174eb96823f265 (patch)
tree27ce2550c88fb9f73145fd8be2298850814985bc /al/effects/modulator.cpp
parentb09aab8426b0feb74cacb8704b4953b3b56a8c30 (diff)
Avoid using ALeffect to manage EaxEffect objects
Effect slots can just use its EaxEffect directly.
Diffstat (limited to 'al/effects/modulator.cpp')
-rw-r--r--al/effects/modulator.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/al/effects/modulator.cpp b/al/effects/modulator.cpp
index c33db8c3..ec7520e2 100644
--- a/al/effects/modulator.cpp
+++ b/al/effects/modulator.cpp
@@ -163,8 +163,7 @@ class EaxRingModulatorEffect final :
public EaxEffect
{
public:
- EaxRingModulatorEffect(
- EffectProps& al_effect_props);
+ EaxRingModulatorEffect();
// [[nodiscard]]
@@ -173,8 +172,6 @@ public:
private:
- EffectProps& al_effect_props_;
-
EAXRINGMODULATORPROPERTIES eax_{};
EAXRINGMODULATORPROPERTIES eax_d_{};
EaxRingModulatorEffectDirtyFlags eax_dirty_flags_{};
@@ -258,10 +255,8 @@ public:
}; // EaxRingModulatorEffectException
-EaxRingModulatorEffect::EaxRingModulatorEffect(
- EffectProps& al_effect_props)
- :
- al_effect_props_{al_effect_props}
+EaxRingModulatorEffect::EaxRingModulatorEffect()
+ : EaxEffect{AL_EFFECT_RING_MODULATOR}
{
set_eax_defaults();
set_efx_defaults();
@@ -533,10 +528,9 @@ bool EaxRingModulatorEffect::set(
} // namespace
-EaxEffectUPtr eax_create_eax_ring_modulator_effect(
- EffectProps& al_effect_props)
+EaxEffectUPtr eax_create_eax_ring_modulator_effect()
{
- return std::make_unique<EaxRingModulatorEffect>(al_effect_props);
+ return std::make_unique<EaxRingModulatorEffect>();
}
#endif // ALSOFT_EAX