diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-24 00:57:34 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-24 00:57:34 +0000 |
commit | e4fbf1c48e562c7242ed317cd8bb804c475127f4 (patch) | |
tree | d523806e895bde5c9890224e52a8707486b230d7 /libs/ardour/session.cc | |
parent | f6652f07ae2bfa9d7984c5b6feffd6479faec034 (diff) |
Only create mono bundles for physical I/O to avoid crowding the
port matrix with duplicate entries.
git-svn-id: svn://localhost/ardour2/branches/3.0@4435 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 77d197ced5..f870a677dc 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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 */ |