diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-22 19:35:38 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-22 19:35:38 +0200 |
commit | 7e8fda8431d1d5a577d654b6bc30093f31247994 (patch) | |
tree | 62df4235a932c1645fec435a6ad9a9d33873648e /libs/ardour/plugin_insert.cc | |
parent | 73aab79d596c68e82fdce961e0c85ceb145d8f51 (diff) |
Single instance AUs only, use variable i/o
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index a541cd5a9f..99d59526ae 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -106,9 +106,14 @@ PluginInsert::set_count (uint32_t num) { bool require_state = !_plugins.empty(); + if (require_state && num > 1 && plugin (0)->get_info ()->type == ARDOUR::AudioUnit) { + // we don't allow to replicate AUs + return false; + } + /* this is a bad idea.... we shouldn't do this while active. - only a route holding their redirect_lock should be calling this - */ + * only a route holding their redirect_lock should be calling this + */ if (num == 0) { return false; |