From 0c507b5c621993206d94fc3776174eb96823f265 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 7 Feb 2022 10:17:13 -0800 Subject: Avoid using ALeffect to manage EaxEffect objects Effect slots can just use its EaxEffect directly. --- al/effects/pshifter.cpp | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'al/effects/pshifter.cpp') diff --git a/al/effects/pshifter.cpp b/al/effects/pshifter.cpp index 7c355be1..6c45ab4e 100644 --- a/al/effects/pshifter.cpp +++ b/al/effects/pshifter.cpp @@ -108,18 +108,13 @@ class EaxPitchShifterEffect final : public EaxEffect { public: - EaxPitchShifterEffect( - EffectProps& al_effect_props); - + EaxPitchShifterEffect(); // [[nodiscard]] bool dispatch( const EaxEaxCall& eax_call) override; - private: - EffectProps& al_effect_props_; - EAXPITCHSHIFTERPROPERTIES eax_{}; EAXPITCHSHIFTERPROPERTIES eax_d_{}; EaxPitchShifterEffectDirtyFlags eax_dirty_flags_{}; @@ -192,10 +187,8 @@ public: }; // EaxPitchShifterEffectException -EaxPitchShifterEffect::EaxPitchShifterEffect( - EffectProps& al_effect_props) - : - al_effect_props_{al_effect_props} +EaxPitchShifterEffect::EaxPitchShifterEffect() + : EaxEffect{AL_EFFECT_PITCH_SHIFTER} { set_eax_defaults(); set_efx_defaults(); @@ -408,10 +401,9 @@ bool EaxPitchShifterEffect::set( } // namespace -EaxEffectUPtr eax_create_eax_pitch_shifter_effect( - EffectProps& al_effect_props) +EaxEffectUPtr eax_create_eax_pitch_shifter_effect() { - return std::make_unique(al_effect_props); + return std::make_unique(); } #endif // ALSOFT_EAX -- cgit v1.2.3