amend 0e3991e (can_support.. AND configure..)
authorRobin Gareus <robin@gareus.org>
Sat, 8 Aug 2015 00:08:27 +0000 (02:08 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 8 Aug 2015 00:08:27 +0000 (02:08 +0200)
libs/ardour/audio_unit.cc

index b99121f06a23be92dd342b817c8d5442b5b1ba06..8274ba9db085317704dd91c32ab9ac58785c4b3b 100644 (file)
@@ -1189,21 +1189,12 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out)
                                audio_out = 2;
                                found = true;
                        } else if (possible_out < -2) {
-                               /* explicitly variable number of outputs. 
-
-                                   Since Ardour can handle any configuration,
-                                   we have to somehow pick a number. 
-
-                                   We'll use the number of inputs
-                                   to the master bus, or 2 if there
-                                   is no master bus.
-                                */
-                                boost::shared_ptr<Route> master = _session.master_out();
-                                if (master) {
-                                        audio_out = master->input()->n_ports().n_audio();
-                                } else {
-                                        audio_out = 2;
-                                }
+                               /* explicitly variable number of outputs.
+                                *
+                                * We really need to ask the user in this case.
+                                * stereo will be correct in 99.9% of all cases.
+                                */
+                               audio_out = 2;
                                found = true;
                        } else {
                                /* exact number of outputs */