X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fport_group.cc;h=925bebc307d09de27b63df03beb72544d5b39f2c;hb=f7a27e17dbfe26c06702755f88336724b92ff617;hp=f313b2973fc80ac509efbf09c93195bbceb96bde;hpb=97d920593ffc796986107e16d7bbf88cc3184043;p=ardour.git diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc index f313b2973f..925bebc307 100644 --- a/gtk2_ardour/port_group.cc +++ b/gtk2_ardour/port_group.cc @@ -31,6 +31,7 @@ #include "ardour/io_processor.h" #include "ardour/session.h" #include "ardour/user_bundle.h" +#include "ardour/port.h" #include "control_protocol/control_protocol.h" #include "gui_thread.h" @@ -422,6 +423,17 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp if (!inputs) { ardour->add_bundle (session->the_auditioner()->output()->bundle()); ardour->add_bundle (session->click_io()->bundle()); + /* Note: the LTC ports do not have the usual ":audio_out 1" postfix, so + * ardour->add_bundle (session->ltc_output_io()->bundle()); + * won't work + */ + boost::shared_ptr ltc (new Bundle (_("LTC Out"), inputs)); + ltc->add_channel (_("LTC Out"), DataType::AUDIO, session->engine().make_port_name_non_relative (session->ltc_output_port()->name())); + ardour->add_bundle (ltc); + } else { + boost::shared_ptr ltc (new Bundle (_("LTC In"), inputs)); + ltc->add_channel (_("LTC In"), DataType::AUDIO, session->engine().make_port_name_non_relative (session->ltc_input_port()->name())); + ardour->add_bundle (ltc); } /* Ardour's surfaces */ @@ -445,6 +457,7 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp boost::shared_ptr sync (new Bundle (_("Sync"), inputs)); MIDI::MachineControl* mmc = midi_manager->mmc (); AudioEngine& ae = session->engine (); + if (inputs) { sync->add_channel ( _("MTC in"), DataType::MIDI, ae.make_port_name_non_relative (midi_manager->mtc_input_port()->name())