From c4a41529574ddf3d8d0f3ee80893c789983a2f68 Mon Sep 17 00:00:00 2001 From: Shirasawa <764798966@qq.com> Date: Fri, 27 Oct 2023 00:45:44 +0800 Subject: [PATCH] Fix bugs --- src/plugin_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugin_host.h b/src/plugin_host.h index b203de7..7bf6cbf 100644 --- a/src/plugin_host.h +++ b/src/plugin_host.h @@ -269,6 +269,7 @@ class plugin_host : public juce::JUCEApplication, public juce::AudioPlayHead, pu << (juce::int8)processor->getTotalNumOutputChannels(); streams::out.writeVarInt(parameters.size()); for (auto p : parameters) { + prevParameterChanges[p->getParameterIndex()] = p->getValue(); juce::int8 flags = 0; if (p->isAutomatable()) flags |= PARAMETER_IS_AUTOMATABLE; if (p->isDiscrete()) flags |= PARAMETER_IS_DISCRETE;