summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-08-08 01:43:57 +0200
committerRobin Gareus <robin@gareus.org>2015-08-08 01:43:57 +0200
commit0e3991e828c3df8ec7c58d51f35ad047b67b34fc (patch)
tree1245c830796870f238127b7ce5d1d8f61b96b884
parentea0b1e704f8d51d2484e4ff721cb99f4023b26aa (diff)
AU: discard relationship with master-bus channel count.
-rw-r--r--libs/ardour/audio_unit.cc21
1 files changed, 6 insertions, 15 deletions
diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc
index e32c4f03a0..b99121f06a 100644
--- a/libs/ardour/audio_unit.cc
+++ b/libs/ardour/audio_unit.cc
@@ -1278,21 +1278,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 */