mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
OSC: comp mode control text needs to be changed by signal too.
This commit is contained in:
parent
72a91ae274
commit
b502d689e2
3 changed files with 14 additions and 6 deletions
|
|
@ -55,8 +55,8 @@ OSCRouteObserver::OSCRouteObserver (boost::shared_ptr<Stripable> s, lo_address a
|
||||||
|
|
||||||
boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (_strip);
|
boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (_strip);
|
||||||
if (track) {
|
if (track) {
|
||||||
track->monitoring_control()->Changed.connect (strip_connections, MISSING_INVALIDATOR, bind (&OSCRouteObserver::send_monitor_status, this, track->monitoring_control()), OSC::instance());
|
track->monitoring_control()->Changed.connect (strip_connections, MISSING_INVALIDATOR, bind (&OSCRouteObserver::send_monitor_status, this, track->monitoring_control()), OSC::instance());
|
||||||
send_monitor_status (track->monitoring_control());
|
send_monitor_status (track->monitoring_control());
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<AutomationControl> rec_controllable = _strip->rec_enable_control ();
|
boost::shared_ptr<AutomationControl> rec_controllable = _strip->rec_enable_control ();
|
||||||
|
|
|
||||||
|
|
@ -157,10 +157,8 @@ OSCSelectObserver::OSCSelectObserver (boost::shared_ptr<Stripable> s, lo_address
|
||||||
change_message ("/select/comp_speed", _strip->comp_speed_controllable());
|
change_message ("/select/comp_speed", _strip->comp_speed_controllable());
|
||||||
}
|
}
|
||||||
if (_strip->comp_mode_controllable ()) {
|
if (_strip->comp_mode_controllable ()) {
|
||||||
_strip->comp_mode_controllable ()->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message, this, X_("/select/comp_mode"), _strip->comp_mode_controllable()), OSC::instance());
|
_strip->comp_mode_controllable ()->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::comp_mode, this), OSC::instance());
|
||||||
change_message ("/select/comp_mode", _strip->comp_mode_controllable());
|
comp_mode ();
|
||||||
text_message ("/select/comp_mode_name", _strip->comp_mode_name(_strip->comp_mode_controllable()->get_value()));
|
|
||||||
text_message ("/select/comp_speed_name", _strip->comp_speed_name(_strip->comp_mode_controllable()->get_value()));
|
|
||||||
}
|
}
|
||||||
if (_strip->comp_makeup_controllable ()) {
|
if (_strip->comp_makeup_controllable ()) {
|
||||||
_strip->comp_makeup_controllable ()->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message, this, X_("/select/comp_makeup"), _strip->comp_makeup_controllable()), OSC::instance());
|
_strip->comp_makeup_controllable ()->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message, this, X_("/select/comp_makeup"), _strip->comp_makeup_controllable()), OSC::instance());
|
||||||
|
|
@ -513,6 +511,14 @@ OSCSelectObserver::text_with_id (string path, uint32_t id, string name)
|
||||||
lo_message_free (msg);
|
lo_message_free (msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
OSCSelectObserver::comp_mode ()
|
||||||
|
{
|
||||||
|
change_message ("/select/comp_mode", _strip->comp_mode_controllable());
|
||||||
|
text_message ("/select/comp_mode_name", _strip->comp_mode_name(_strip->comp_mode_controllable()->get_value()));
|
||||||
|
text_message ("/select/comp_speed_name", _strip->comp_speed_name(_strip->comp_mode_controllable()->get_value()));
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
OSCSelectObserver::eq_init()
|
OSCSelectObserver::eq_init()
|
||||||
{
|
{
|
||||||
|
|
@ -557,6 +563,7 @@ OSCSelectObserver::eq_init()
|
||||||
void
|
void
|
||||||
OSCSelectObserver::eq_end ()
|
OSCSelectObserver::eq_end ()
|
||||||
{
|
{
|
||||||
|
//need to check feedback for [13]
|
||||||
eq_connections.drop_connections ();
|
eq_connections.drop_connections ();
|
||||||
clear_strip ("/select/eq_hpf", 0);
|
clear_strip ("/select/eq_hpf", 0);
|
||||||
clear_strip ("/select/eq_enable", 0);
|
clear_strip ("/select/eq_enable", 0);
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ class OSCSelectObserver
|
||||||
|
|
||||||
void name_changed (const PBD::PropertyChange& what_changed);
|
void name_changed (const PBD::PropertyChange& what_changed);
|
||||||
void change_message (std::string path, boost::shared_ptr<PBD::Controllable> controllable);
|
void change_message (std::string path, boost::shared_ptr<PBD::Controllable> controllable);
|
||||||
|
void comp_mode (void);
|
||||||
void change_message_with_id (std::string path, uint32_t id, boost::shared_ptr<PBD::Controllable> controllable);
|
void change_message_with_id (std::string path, uint32_t id, boost::shared_ptr<PBD::Controllable> controllable);
|
||||||
void text_message (std::string path, std::string text);
|
void text_message (std::string path, std::string text);
|
||||||
void text_with_id (std::string path, uint32_t id, std::string name);
|
void text_with_id (std::string path, uint32_t id, std::string name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue