libs: debug output for faderport/editor mixer strip sync
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 24 Feb 2017 22:10:03 +0000 (23:10 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 24 Feb 2017 22:10:03 +0000 (23:10 +0100)
libs/surfaces/control_protocol/control_protocol.cc
libs/surfaces/faderport/faderport.cc

index 36131e0b9e704a6ab7fb8135dce87b2f1e4beb55..a77223bcc89e6ee16fe8406149c9975ccd58601a 100644 (file)
@@ -371,6 +371,11 @@ ControlProtocol::set_first_selected_stripable (boost::shared_ptr<Stripable> 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
index 5da4ecdd3c8cae8cae34c12ff7bb8199c568999a..1b3e4a3ac8dd3e6db240d376c77a69a232636cd4 100644 (file)
@@ -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<Stripable> s = ControlProtocol::first_selected_stripable();
+       cerr << "Faderport: GUI track selection changed, first = "
+            << (s ? s->name() : " --none-- ")
+            << endl;
+
+       set_current_stripable (s);
 }
 
 void