diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-27 23:32:00 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-27 23:34:55 +0200 |
commit | c30b47f0eb72b0f4c6807ef34eea7b557bd9be16 (patch) | |
tree | ccbce9fde44fb1071c057fc2ce8489bef2279a97 /libs/ardour/ardour | |
parent | b191408f986debf75fd7077946048259c071730e (diff) |
allow to customize variable i/o plugin inputs
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/plugin_insert.h | 2 | ||||
-rw-r--r-- | libs/ardour/ardour/route.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/ardour/plugin_insert.h b/libs/ardour/ardour/plugin_insert.h index bd72682692..9e8c530e57 100644 --- a/libs/ardour/ardour/plugin_insert.h +++ b/libs/ardour/ardour/plugin_insert.h @@ -144,6 +144,7 @@ class LIBARDOUR_API PluginInsert : public Processor // only the owning route may call these (with process lock held) // route is not a friend class, it owns us bool set_count (uint32_t num); + void set_sinks (const ChanCount&); // reconfigurable I/O ONLY void set_outputs (const ChanCount&); void set_strict_io (bool b); void set_custom_cfg (bool b); @@ -312,6 +313,7 @@ class LIBARDOUR_API PluginInsert : public Processor ChanCount _configured_internal; // with side-chain ChanCount _configured_out; ChanCount _custom_out; + ChanCount _custom_sinks; ChanCount _preset_out; ChanCount _cached_sidechain_pins; ChanCount _required_buffers; diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h index b8060f059d..66a83cf67d 100644 --- a/libs/ardour/ardour/route.h +++ b/libs/ardour/ardour/route.h @@ -309,9 +309,10 @@ class LIBARDOUR_API Route : public SessionObject, public Automatable, public Rou * @param proc Processor to customize * @param count number of plugin instances to use (if zero, reset to default) * @param outs output port customization + * @param sinks input pins for variable-I/O plugins * @returns true if successful */ - bool customize_plugin_insert (boost::shared_ptr<Processor> proc, uint32_t count, ChanCount outs); + bool customize_plugin_insert (boost::shared_ptr<Processor> proc, uint32_t count, ChanCount outs, ChanCount sinks); bool add_remove_sidechain (boost::shared_ptr<Processor> proc, bool); bool plugin_preset_output (boost::shared_ptr<Processor> proc, ChanCount outs); |