From 6fb5cb553f4c2faf4b991ac377ec457a7bba7e4c Mon Sep 17 00:00:00 2001 From: "Boris I. Bendovsky" Date: Tue, 12 Jul 2022 12:46:51 +0300 Subject: [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 --- al/effects/vmorpher.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'al/effects/vmorpher.cpp') diff --git a/al/effects/vmorpher.cpp b/al/effects/vmorpher.cpp index 95f98db5..e1b7a698 100644 --- a/al/effects/vmorpher.cpp +++ b/al/effects/vmorpher.cpp @@ -267,7 +267,7 @@ public: class EaxVocalMorpherEffect final : public EaxEffect4 { public: - EaxVocalMorpherEffect(const EaxCall& call); + EaxVocalMorpherEffect(int eax_version); private: struct PhonemeAValidator { @@ -363,8 +363,8 @@ private: bool commit_props(const Props& props) override; }; // EaxVocalMorpherEffect -EaxVocalMorpherEffect::EaxVocalMorpherEffect(const EaxCall& call) - : EaxEffect4{AL_EFFECT_VOCAL_MORPHER, call} +EaxVocalMorpherEffect::EaxVocalMorpherEffect(int eax_version) + : EaxEffect4{AL_EFFECT_VOCAL_MORPHER, eax_version} {} void EaxVocalMorpherEffect::set_defaults(Props& props) @@ -570,9 +570,9 @@ bool EaxVocalMorpherEffect::commit_props(const Props& props) } // namespace -EaxEffectUPtr eax_create_eax_vocal_morpher_effect(const EaxCall& call) +EaxEffectUPtr eax_create_eax_vocal_morpher_effect(int eax_version) { - return eax_create_eax4_effect(call); + return eax_create_eax4_effect(eax_version); } #endif // ALSOFT_EAX -- cgit v1.2.3