diff options
author | Boris I. Bendovsky <[email protected]> | 2022-07-12 12:46:51 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-12 02:46:51 -0700 |
commit | 6fb5cb553f4c2faf4b991ac377ec457a7bba7e4c (patch) | |
tree | 5b62a1111fa1a48f3a2e226b8491bc1615db865d /al/effects/pshifter.cpp | |
parent | fa51c89549590319cb545a8c81419e2e1ddc5db3 (diff) |
[EAX] Use separate FX slot state for each version (#730)
* [EAX] Use separate FX slot state for each version
[EAX] Don't defer FX slot properties
* [EAX_FXSLOT] Use mPropsDirty to defer update
[EAX_CONTEXT] Commit all updates on first initialization
Diffstat (limited to 'al/effects/pshifter.cpp')
-rw-r--r-- | al/effects/pshifter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/al/effects/pshifter.cpp b/al/effects/pshifter.cpp index 51dbdd8f..9711da28 100644 --- a/al/effects/pshifter.cpp +++ b/al/effects/pshifter.cpp @@ -102,7 +102,7 @@ public: class EaxPitchShifterEffect final : public EaxEffect4<EaxPitchShifterEffectException, EAXPITCHSHIFTERPROPERTIES> { public: - EaxPitchShifterEffect(const EaxCall& call); + EaxPitchShifterEffect(int eax_version); private: struct CoarseTuneValidator { @@ -146,8 +146,8 @@ private: bool commit_props(const Props& old_i) override; }; // EaxPitchShifterEffect -EaxPitchShifterEffect::EaxPitchShifterEffect(const EaxCall& call) - : EaxEffect4{AL_EFFECT_PITCH_SHIFTER, call} +EaxPitchShifterEffect::EaxPitchShifterEffect(int eax_version) + : EaxEffect4{AL_EFFECT_PITCH_SHIFTER, eax_version} {} void EaxPitchShifterEffect::set_defaults(Props& props) @@ -223,9 +223,9 @@ bool EaxPitchShifterEffect::commit_props(const Props& props) } // namespace -EaxEffectUPtr eax_create_eax_pitch_shifter_effect(const EaxCall& call) +EaxEffectUPtr eax_create_eax_pitch_shifter_effect(int eax_version) { - return eax_create_eax4_effect<EaxPitchShifterEffect>(call); + return eax_create_eax4_effect<EaxPitchShifterEffect>(eax_version); } #endif // ALSOFT_EAX |