OSC: Add feedback for hidden strip

This commit is contained in:
Len Ovens
2018-01-13 08:41:58 -08:00
parent e51c5ab76a
commit ef1301759d
2 changed files with 10 additions and 0 deletions

View File

@@ -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());
@@ -639,6 +642,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)
{

View File

@@ -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);