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/echo.cpp | |
parent | b09aab8426b0feb74cacb8704b4953b3b56a8c30 (diff) |
Avoid using ALeffect to manage EaxEffect objects
Effect slots can just use its EaxEffect directly.
Diffstat (limited to 'al/effects/echo.cpp')
-rw-r--r-- | al/effects/echo.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/al/effects/echo.cpp b/al/effects/echo.cpp index 7e7a38bc..f54e4f31 100644 --- a/al/effects/echo.cpp +++ b/al/effects/echo.cpp @@ -138,8 +138,7 @@ class EaxEchoEffect final : public EaxEffect { public: - EaxEchoEffect( - EffectProps& al_effect_props); + EaxEchoEffect(); // [[nodiscard]] @@ -148,8 +147,6 @@ public: private: - EffectProps& al_effect_props_; - EAXECHOPROPERTIES eax_{}; EAXECHOPROPERTIES eax_d_{}; EaxEchoEffectDirtyFlags eax_dirty_flags_{}; @@ -253,10 +250,8 @@ public: }; // EaxEchoEffectException -EaxEchoEffect::EaxEchoEffect( - EffectProps& al_effect_props) - : - al_effect_props_{al_effect_props} +EaxEchoEffect::EaxEchoEffect() + : EaxEffect{AL_EFFECT_ECHO} { set_eax_defaults(); set_efx_defaults(); @@ -631,10 +626,9 @@ bool EaxEchoEffect::set( } // namespace -EaxEffectUPtr eax_create_eax_echo_effect( - EffectProps& al_effect_props) +EaxEffectUPtr eax_create_eax_echo_effect() { - return std::make_unique<EaxEchoEffect>(al_effect_props); + return std::make_unique<EaxEchoEffect>(); } #endif // ALSOFT_EAX |