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:
parent
c76876d388
commit
2b27f5b36e
1 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue