diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-19 16:29:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-19 16:29:08 +0200 |
commit | b4d4cb805e5506879f1463fffdd4ea5fc3750bd5 (patch) | |
tree | bd47caf52bfb54891d59bebe579e8bcce954ffec /libs/ardour/plugin_insert.cc | |
parent | e0846c6aee11853597fb6867b35a16f7a3b43479 (diff) |
prepare plugin configuration and replacing instruments
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index f6f620e883..a72412a868 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -1192,6 +1192,20 @@ PluginInsert::set_thru_map (ChanMapping m) { } } +bool +PluginInsert::pre_seed (const ChanCount& in, const ChanCount& out, + const ChanMapping& im, const ChanMapping& om, const ChanMapping& tm) +{ + if (_configured) { return false; } + _configured_in = in; + _configured_out = out; + _in_map[0] = im; + _out_map[0] = om; + _thru_map = tm; + _maps_from_state = in.n_total () > 0 && out.n_total () > 0; + return true; +} + ChanMapping PluginInsert::input_map () const { |