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/reverb.cpp | |
parent | b09aab8426b0feb74cacb8704b4953b3b56a8c30 (diff) |
Avoid using ALeffect to manage EaxEffect objects
Effect slots can just use its EaxEffect directly.
Diffstat (limited to 'al/effects/reverb.cpp')
-rw-r--r-- | al/effects/reverb.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/al/effects/reverb.cpp b/al/effects/reverb.cpp index a8404f8b..ef23f869 100644 --- a/al/effects/reverb.cpp +++ b/al/effects/reverb.cpp @@ -604,18 +604,13 @@ class EaxReverbEffect final : public EaxEffect { public: - EaxReverbEffect( - EffectProps& al_effect_props); - + EaxReverbEffect(); // [[nodiscard]] bool dispatch( const EaxEaxCall& eax_call) override; - private: - EffectProps& al_effect_props_; - EAXREVERBPROPERTIES eax_{}; EAXREVERBPROPERTIES eax_d_{}; EaxReverbEffectDirtyFlags eax_dirty_flags_{}; @@ -941,10 +936,8 @@ public: }; // EaxReverbEffectException -EaxReverbEffect::EaxReverbEffect( - EffectProps& al_effect_props) - : - al_effect_props_{al_effect_props} +EaxReverbEffect::EaxReverbEffect() + : EaxEffect{AL_EFFECT_EAXREVERB} { set_eax_defaults(); set_efx_defaults(); @@ -2464,10 +2457,9 @@ bool EaxReverbEffect::set( } // namespace -EaxEffectUPtr eax_create_eax_reverb_effect( - EffectProps& al_effect_props) +EaxEffectUPtr eax_create_eax_reverb_effect() { - return std::make_unique<EaxReverbEffect>(al_effect_props); + return std::make_unique<EaxReverbEffect>(); } #endif // ALSOFT_EAX |