aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects/pshifter.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/pshifter.cpp
parentb09aab8426b0feb74cacb8704b4953b3b56a8c30 (diff)
Avoid using ALeffect to manage EaxEffect objects
Effect slots can just use its EaxEffect directly.
Diffstat (limited to 'al/effects/pshifter.cpp')
-rw-r--r--al/effects/pshifter.cpp18
1 files changed, 5 insertions, 13 deletions
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<EaxPitchShifterEffect>(al_effect_props);
+ return std::make_unique<EaxPitchShifterEffect>();
}
#endif // ALSOFT_EAX