From c30b47f0eb72b0f4c6807ef34eea7b557bd9be16 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 27 Apr 2016 23:32:00 +0200 Subject: allow to customize variable i/o plugin inputs --- libs/ardour/ardour/plugin_insert.h | 2 ++ libs/ardour/ardour/route.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour') 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 proc, uint32_t count, ChanCount outs); + bool customize_plugin_insert (boost::shared_ptr proc, uint32_t count, ChanCount outs, ChanCount sinks); bool add_remove_sidechain (boost::shared_ptr proc, bool); bool plugin_preset_output (boost::shared_ptr proc, ChanCount outs); -- cgit v1.2.3