Fix analysis plugin when using plugin-presets

This commit is contained in:
Robin Gareus 2019-02-28 04:19:16 +01:00
parent 5d4fbcb1ea
commit d2b73141af
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 11 additions and 0 deletions

View File

@ -112,6 +112,7 @@ Plugin::Plugin (const Plugin& other)
, _for_impulse_analysis (false)
, _have_presets (false)
, _have_pending_stop_events (false)
, _last_preset (other._last_preset)
, _parameter_changed_since_last_preset (false)
, _immediate_events(6096) // FIXME: size?
{

View File

@ -574,6 +574,10 @@ PluginInsert::parameter_changed_externally (uint32_t which, float val)
(*i)->set_parameter (which, val);
}
}
boost::shared_ptr<Plugin> iasp = _impulseAnalysisPlugin.lock();
if (iasp) {
iasp->set_parameter (which, val);
}
}
int
@ -3171,6 +3175,12 @@ PluginInsert::load_preset (ARDOUR::Plugin::PresetRecord pr)
ok = false;
}
}
boost::shared_ptr<Plugin> iasp = _impulseAnalysisPlugin.lock();
if (iasp) {
iasp->load_preset (pr);
}
return ok;
}