summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-02-24 23:10:03 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-02-24 23:10:03 +0100
commit6fb91b1ac25bbeb282228822efbdc91b62941f6e (patch)
tree2517ab006f9e74985299dddd8a8c164cc7591f1a /libs
parent2b9525c9918345feeae92c6b7df1ac2cb09242ba (diff)
libs: debug output for faderport/editor mixer strip sync
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/control_protocol/control_protocol.cc5
-rw-r--r--libs/surfaces/faderport/faderport.cc7
2 files changed, 11 insertions, 1 deletions
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<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
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<Stripable> s = ControlProtocol::first_selected_stripable();
+ cerr << "Faderport: GUI track selection changed, first = "
+ << (s ? s->name() : " --none-- ")
+ << endl;
+
+ set_current_stripable (s);
}
void