From 40498f841d2c7961793a2964f2b86255a96360dd Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 12 Jan 2018 01:09:45 +0100 Subject: [PATCH] Refine 31f79489, de-duplicate AU I/O configurations --- libs/ardour/audio_unit.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index 76e456218a..867040a8d0 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -1278,6 +1278,11 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out, Cha // on the 2nd bus. io_configs.push_back (pair (possible_in + bus_inputs[i], possible_out)); } + /* only add additional, optional busses to first available config. + * AUPluginInfo::cached_io_configuration () already incrementally + * adds busses (for instruments w/ multiple configurations) + */ + break; } } @@ -1296,6 +1301,11 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out, Cha } io_configs.push_back (pair (possible_in, possible_out + c)); } + /* only add additional, optional busses to first available config. + * AUPluginInfo::cached_io_configuration () already incrementally + * adds busses (for instruments w/ multiple configurations) + */ + break; } }