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/distortion.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/distortion.cpp')
-rw-r--r-- | al/effects/distortion.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/al/effects/distortion.cpp b/al/effects/distortion.cpp index b58412b9..80e5f46d 100644 --- a/al/effects/distortion.cpp +++ b/al/effects/distortion.cpp @@ -133,7 +133,7 @@ public: class EaxDistortionEffect final : public EaxEffect4<EaxDistortionEffectException, EAXDISTORTIONPROPERTIES> { public: - EaxDistortionEffect(const EaxCall& call); + EaxDistortionEffect(int eax_version); private: struct EdgeValidator { @@ -216,8 +216,8 @@ private: bool commit_props(const Props& props) override; }; // EaxDistortionEffect -EaxDistortionEffect::EaxDistortionEffect(const EaxCall& call) - : EaxEffect4{AL_EFFECT_DISTORTION, call} +EaxDistortionEffect::EaxDistortionEffect(int eax_version) + : EaxEffect4{AL_EFFECT_DISTORTION, eax_version} {} void EaxDistortionEffect::set_defaults(Props& props) @@ -347,9 +347,9 @@ bool EaxDistortionEffect::commit_props(const Props& props) } // namespace -EaxEffectUPtr eax_create_eax_distortion_effect(const EaxCall& call) +EaxEffectUPtr eax_create_eax_distortion_effect(int eax_version) { - return eax_create_eax4_effect<EaxDistortionEffect>(call); + return eax_create_eax4_effect<EaxDistortionEffect>(eax_version); } #endif // ALSOFT_EAX |