Fix analysis plugin when using plugin-presets
This commit is contained in:
parent
5d4fbcb1ea
commit
d2b73141af
@ -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?
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user