diff options
author | Len Ovens <len@ovenwerks.net> | 2018-01-13 08:41:58 -0800 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2018-01-13 08:41:58 -0800 |
commit | ef1301759da52bae3a685538d41117d19d4315ca (patch) | |
tree | fcdd50a1495554577c1219df1188eaae7dc5a17a /libs | |
parent | e51c5ab76a4c53d723ec5dcc31a05400e528d70e (diff) |
OSC: Add feedback for hidden strip
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/osc/osc_select_observer.cc | 9 | ||||
-rw-r--r-- | libs/surfaces/osc/osc_select_observer.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc_select_observer.cc b/libs/surfaces/osc/osc_select_observer.cc index 542bb402ed..d08c454b26 100644 --- a/libs/surfaces/osc/osc_select_observer.cc +++ b/libs/surfaces/osc/osc_select_observer.cc @@ -133,6 +133,9 @@ OSCSelectObserver::refresh_strip (boost::shared_ptr<ARDOUR::Stripable> new_strip _strip->PropertyChanged.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::name_changed, this, boost::lambda::_1), OSC::instance()); name_changed (ARDOUR::Properties::name); + _strip->presentation_info().PropertyChanged.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::pi_changed, this, _1), OSC::instance()); + _osc.float_message ("/select/hide", _strip->is_hidden (), addr); + _strip->mute_control()->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message, this, X_("/select/mute"), _strip->mute_control()), OSC::instance()); change_message ("/select/mute", _strip->mute_control()); @@ -640,6 +643,12 @@ OSCSelectObserver::name_changed (const PBD::PropertyChange& what_changed) } void +OSCSelectObserver::pi_changed (PBD::PropertyChange const& what_changed) +{ + _osc.float_message ("/select/hide", _strip->is_hidden (), addr); +} + +void OSCSelectObserver::change_message (string path, boost::shared_ptr<Controllable> controllable) { float val = controllable->get_value(); diff --git a/libs/surfaces/osc/osc_select_observer.h b/libs/surfaces/osc/osc_select_observer.h index 9569b77d84..1339a3484b 100644 --- a/libs/surfaces/osc/osc_select_observer.h +++ b/libs/surfaces/osc/osc_select_observer.h @@ -96,6 +96,7 @@ class OSCSelectObserver uint32_t _expand; void name_changed (const PBD::PropertyChange& what_changed); + void pi_changed (PBD::PropertyChange const&); void change_message (std::string path, boost::shared_ptr<PBD::Controllable> controllable); void enable_message (std::string path, boost::shared_ptr<PBD::Controllable> controllable); void comp_mode (void); |