From 6fb91b1ac25bbeb282228822efbdc91b62941f6e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 24 Feb 2017 23:10:03 +0100 Subject: libs: debug output for faderport/editor mixer strip sync --- libs/surfaces/control_protocol/control_protocol.cc | 5 +++++ libs/surfaces/faderport/faderport.cc | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/surfaces/control_protocol/control_protocol.cc b/libs/surfaces/control_protocol/control_protocol.cc index 36131e0b9e..a77223bcc8 100644 --- a/libs/surfaces/control_protocol/control_protocol.cc +++ b/libs/surfaces/control_protocol/control_protocol.cc @@ -371,6 +371,11 @@ ControlProtocol::set_first_selected_stripable (boost::shared_ptr s) { Glib::Threads::Mutex::Lock lm (special_stripable_mutex); _first_selected_stripable = s; + if (s) { + std::cerr << "control protocol now has first selected as " << s->name() << endl; + } else { + std::cerr << "control protocol: first selected unset\n"; + } } void diff --git a/libs/surfaces/faderport/faderport.cc b/libs/surfaces/faderport/faderport.cc index 5da4ecdd3c..1b3e4a3ac8 100644 --- a/libs/surfaces/faderport/faderport.cc +++ b/libs/surfaces/faderport/faderport.cc @@ -1115,7 +1115,12 @@ FaderPort::Button::get_state () const void FaderPort::gui_track_selection_changed (StripableNotificationListPtr stripables) { - set_current_stripable (ControlProtocol::first_selected_stripable()); + boost::shared_ptr s = ControlProtocol::first_selected_stripable(); + cerr << "Faderport: GUI track selection changed, first = " + << (s ? s->name() : " --none-- ") + << endl; + + set_current_stripable (s); } void -- cgit v1.2.3