mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 06:35:46 +01:00
break recursive loops of Plugin::parameter_changed()->Plugin::ParameterChanged()->Plugin::parameter_changed() ...
git-svn-id: svn://localhost/ardour2/branches/3.0@13036 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
163d4b85d1
commit
b1ad798b9a
3 changed files with 16 additions and 0 deletions
|
|
@ -279,6 +279,11 @@ void
|
|||
LadspaPlugin::set_parameter (uint32_t which, float val)
|
||||
{
|
||||
if (which < _descriptor->PortCount) {
|
||||
|
||||
if (get_parameter (which) == val) {
|
||||
return;
|
||||
}
|
||||
|
||||
_shadow_data[which] = (LADSPA_Data) val;
|
||||
|
||||
#if 0
|
||||
|
|
|
|||
|
|
@ -558,7 +558,14 @@ LV2Plugin::set_parameter(uint32_t which, float val)
|
|||
"%1 set parameter %2 to %3\n", name(), which, val));
|
||||
|
||||
if (which < lilv_plugin_get_num_ports(_impl->plugin)) {
|
||||
|
||||
if (get_parameter (which) == val) {
|
||||
return;
|
||||
}
|
||||
|
||||
_shadow_data[which] = val;
|
||||
|
||||
|
||||
} else {
|
||||
warning << string_compose(
|
||||
_("Illegal parameter number used with plugin \"%1\". "
|
||||
|
|
|
|||
|
|
@ -101,6 +101,10 @@ VSTPlugin::get_parameter (uint32_t which) const
|
|||
void
|
||||
VSTPlugin::set_parameter (uint32_t which, float val)
|
||||
{
|
||||
if (get_parameter (which) == val) {
|
||||
return;
|
||||
}
|
||||
|
||||
_plugin->setParameter (_plugin, which, val);
|
||||
Plugin::set_parameter (which, val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue