X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=blobdiff_plain;f=libs%2Fardour%2Fplugin_insert.cc;h=78f46275f71e43429e7cda58396783943c4629a3;hp=9e55979a244dd9bc2ab0720afe8d09c53dad2ebc;hb=66e488e38d70535a6187e2e40454143106cc9f28;hpb=62a12f2e69e1f6b1d0b5fdf1575c5d6dda6bcc84 diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index 9e55979a24..78f46275f7 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -86,6 +86,16 @@ PluginInsert::~PluginInsert () { } +void +PluginInsert::set_strict_io (bool b) +{ + bool changed = _strict_io != b; + _strict_io = b; + if (changed) { + PluginConfigChanged (); /* EMIT SIGNAL */ + } +} + bool PluginInsert::set_count (uint32_t num) { @@ -111,12 +121,14 @@ PluginInsert::set_count (uint32_t num) /* XXX do something */ } } + PluginConfigChanged (); /* EMIT SIGNAL */ } else if (num < _plugins.size()) { uint32_t diff = _plugins.size() - num; for (uint32_t n= 0; n < diff; ++n) { _plugins.pop_back(); } + PluginConfigChanged (); /* EMIT SIGNAL */ } return true; @@ -126,7 +138,21 @@ PluginInsert::set_count (uint32_t num) void PluginInsert::set_outputs (const ChanCount& c) { + bool changed = (_custom_out != c) && _custom_cfg; _custom_out = c; + if (changed) { + PluginConfigChanged (); /* EMIT SIGNAL */ + } +} + +void +PluginInsert::set_custom_cfg (bool b) +{ + bool changed = _custom_cfg != b; + _custom_cfg = b; + if (changed) { + PluginConfigChanged (); /* EMIT SIGNAL */ + } } void