fix AU sidechain busses
authorRobin Gareus <robin@gareus.org>
Mon, 4 Jul 2016 19:45:26 +0000 (21:45 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 4 Jul 2016 19:46:01 +0000 (21:46 +0200)
libs/ardour/audio_unit.cc

index a520fbb00e981d4477ee4ae77f6f92a622590536..d276320d336da6afdc8b591939cb5f0cecc4fad7 100644 (file)
@@ -1263,12 +1263,13 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out, Cha
                for (vector<pair<int,int> >::const_iterator i = ioc.begin(); i != ioc.end(); ++i) {
                        int32_t possible_in = i->first;
                        int32_t possible_out = i->second;
-                       if (possible_in <= 1 || possible_out <= 1) {
+                       if (possible_in < 1 || possible_out < 1) {
                                continue;
                        }
                        for (uint32_t i = 1; i < input_elements; ++i) {
-                               // TODO: consider up-to bus_inputs[i]
-                               io_configs.push_back (pair<int,int> (possible_in + bus_inputs[i], possible_out));
+                               for (uint32_t j = 0; j < bus_inputs[i]; ++j) {
+                                       io_configs.push_back (pair<int,int> (possible_in + j, possible_out));
+                               }
                        }
                }
        }