Only create mono bundles for physical I/O to avoid crowding the
authorCarl Hetherington <carl@carlh.net>
Sat, 24 Jan 2009 00:57:34 +0000 (00:57 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 24 Jan 2009 00:57:34 +0000 (00:57 +0000)
port matrix with duplicate entries.

git-svn-id: svn://localhost/ardour2/branches/3.0@4435 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session.cc

index 77d197ced5d4ab49aa83672e862b461dd6c76dd9..f870a677dc4859dda37b7cc4a86fa37cb4ca3ab8 100644 (file)
@@ -586,13 +586,10 @@ Session::when_engine_running ()
                // XXX HOW TO ALERT UI TO THIS ? DO WE NEED TO?
        }
 
-       /* Create a set of Bundle objects that map
-          to the physical outputs currently available
-       */
-
        BootMessage (_("Set up standard connections"));
 
-       /* ONE: MONO */
+       /* Create a set of Bundle objects that map
+          to the physical I/O currently available */
 
        for (uint32_t np = 0; np < n_physical_outputs; ++np) {
                char buf[32];
@@ -616,36 +613,6 @@ Session::when_engine_running ()
                add_bundle (c);
        }
 
-       /* TWO: STEREO */
-
-       for (uint32_t np = 0; np < n_physical_outputs; np +=2) {
-               char buf[32];
-               snprintf (buf, sizeof (buf), _("out %" PRIu32 "+%" PRIu32), np+1, np+2);
-
-               shared_ptr<Bundle> c (new Bundle (buf, true));
-               c->add_channel (_("left"));
-               c->set_port (0, _engine.get_nth_physical_output (DataType::AUDIO, np));
-               c->add_channel (_("right"));
-               c->set_port (1, _engine.get_nth_physical_output (DataType::AUDIO, np + 1));
-
-               add_bundle (c);
-       }
-
-       for (uint32_t np = 0; np < n_physical_inputs; np +=2) {
-               char buf[32];
-               snprintf (buf, sizeof (buf), _("in %" PRIu32 "+%" PRIu32), np+1, np+2);
-
-               shared_ptr<Bundle> c (new Bundle (buf, false));
-               c->add_channel (_("left"));
-               c->set_port (0, _engine.get_nth_physical_input (DataType::AUDIO, np));
-               c->add_channel (_("right"));
-               c->set_port (1, _engine.get_nth_physical_input (DataType::AUDIO, np + 1));
-
-               add_bundle (c);
-       }
-
-       /* THREE MASTER */
-
        if (_master_out) {
 
                /* create master/control ports */