diff options
author | Chris Robinson <[email protected]> | 2022-02-07 10:17:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-07 10:17:13 -0800 |
commit | 0c507b5c621993206d94fc3776174eb96823f265 (patch) | |
tree | 27ce2550c88fb9f73145fd8be2298850814985bc /al/effects/distortion.cpp | |
parent | b09aab8426b0feb74cacb8704b4953b3b56a8c30 (diff) |
Avoid using ALeffect to manage EaxEffect objects
Effect slots can just use its EaxEffect directly.
Diffstat (limited to 'al/effects/distortion.cpp')
-rw-r--r-- | al/effects/distortion.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/al/effects/distortion.cpp b/al/effects/distortion.cpp index d0c9a3c2..4554901c 100644 --- a/al/effects/distortion.cpp +++ b/al/effects/distortion.cpp @@ -141,8 +141,7 @@ class EaxDistortionEffect final : public EaxEffect { public: - EaxDistortionEffect( - EffectProps& al_effect_props); + EaxDistortionEffect(); // [[nodiscard]] @@ -151,8 +150,6 @@ public: private: - EffectProps& al_effect_props_; - EAXDISTORTIONPROPERTIES eax_{}; EAXDISTORTIONPROPERTIES eax_d_{}; EaxDistortionEffectDirtyFlags eax_dirty_flags_{}; @@ -258,10 +255,8 @@ public: }; // EaxDistortionEffectException -EaxDistortionEffect::EaxDistortionEffect( - EffectProps& al_effect_props) - : - al_effect_props_{al_effect_props} +EaxDistortionEffect::EaxDistortionEffect() + : EaxEffect{AL_EFFECT_DISTORTION} { set_eax_defaults(); set_efx_defaults(); @@ -636,10 +631,9 @@ bool EaxDistortionEffect::set( } // namespace -EaxEffectUPtr eax_create_eax_distortion_effect( - EffectProps& al_effect_props) +EaxEffectUPtr eax_create_eax_distortion_effect() { - return std::make_unique<EaxDistortionEffect>(al_effect_props); + return std::make_unique<EaxDistortionEffect>(); } #endif // ALSOFT_EAX |