aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects/pshifter.cpp
diff options
context:
space:
mode:
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