1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix automation issue when automation points are edited before opening editor. See: http://www.juce.com/forum/topic/automation-issue-cubase/nuendo#new

This commit is contained in:
hogliux 2015-05-11 12:21:15 +01:00
parent c76876d388
commit 2b27f5b36e

View file

@ -231,6 +231,18 @@ public:
};
//==============================================================================
tresult PLUGIN_API setComponentState (IBStream*) override
{
// Cubase and Nuendo need to inform the host of the current parameter values
if (AudioProcessor* const pluginInstance = getPluginInstance())
{
for (int i = 0; i < pluginInstance->getNumParameters(); ++i)
setParamNormalized ((Vst::ParamID) i, (double) pluginInstance->getParameter (i));
}
return kResultFalse;
}
void setAudioProcessor (JuceAudioProcessor* audioProc)
{
if (audioProcessor != audioProc)