diff options
author | Len Ovens <len@ovenwerks.net> | 2018-01-14 13:06:37 -0800 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2018-01-14 13:07:40 -0800 |
commit | 1ebe6cdf0778b2caebc411c4a90ed240ddc11b4f (patch) | |
tree | e28502198231209fa012246ca677ca00073fd1f1 /libs | |
parent | c7a052a45f687f33d88cc56f3eee8daa959cb452 (diff) |
OSC: Added feedback for /strip/hide
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/osc/osc_route_observer.cc | 9 | ||||
-rw-r--r-- | libs/surfaces/osc/osc_route_observer.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc_route_observer.cc b/libs/surfaces/osc/osc_route_observer.cc index 8269459718..ea7be9041e 100644 --- a/libs/surfaces/osc/osc_route_observer.cc +++ b/libs/surfaces/osc/osc_route_observer.cc @@ -129,6 +129,9 @@ OSCRouteObserver::refresh_strip (boost::shared_ptr<ARDOUR::Stripable> new_strip, _strip->PropertyChanged.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCRouteObserver::name_changed, this, boost::lambda::_1), OSC::instance()); name_changed (ARDOUR::Properties::name); + _strip->presentation_info().PropertyChanged.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCRouteObserver::pi_changed, this, _1), OSC::instance()); + _osc.int_message_with_id ("/strip/hide", ssid, _strip->is_hidden (), in_line, addr); + _strip->mute_control()->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCRouteObserver::send_change_message, this, X_("/strip/mute"), _strip->mute_control()), OSC::instance()); send_change_message ("/strip/mute", _strip->mute_control()); @@ -345,6 +348,12 @@ OSCRouteObserver::name_changed (const PBD::PropertyChange& what_changed) } void +OSCRouteObserver::pi_changed (PBD::PropertyChange const& what_changed) +{ + _osc.int_message_with_id ("/strip/hide", ssid, _strip->is_hidden (), in_line, addr); +} + +void OSCRouteObserver::send_change_message (string path, boost::shared_ptr<Controllable> controllable) { float val = controllable->get_value(); diff --git a/libs/surfaces/osc/osc_route_observer.h b/libs/surfaces/osc/osc_route_observer.h index d9e9a183f0..70fc3cc6c0 100644 --- a/libs/surfaces/osc/osc_route_observer.h +++ b/libs/surfaces/osc/osc_route_observer.h @@ -73,6 +73,7 @@ class OSCRouteObserver void name_changed (const PBD::PropertyChange& what_changed); + void pi_changed (PBD::PropertyChange const&); void send_change_message (std::string path, boost::shared_ptr<PBD::Controllable> controllable); void send_monitor_status (boost::shared_ptr<PBD::Controllable> controllable); void send_gain_message (); |