diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 61e1828450..f6c89005b7 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -2215,19 +2215,19 @@ OSC::set_automation (const char *path, size_t len, lo_arg **argv, int argc, lo_m if (strp->gain_control ()) { switch (aut) { case 0: - strp->gain_control()->set_automation_state (ARDOUR::AutoState::Off); + strp->gain_control()->set_automation_state (ARDOUR::Off); ret = 0; break; case 1: - strp->gain_control()->set_automation_state (ARDOUR::AutoState::Play); + strp->gain_control()->set_automation_state (ARDOUR::Play); ret = 0; break; case 2: - strp->gain_control()->set_automation_state (ARDOUR::AutoState::Write); + strp->gain_control()->set_automation_state (ARDOUR::Write); ret = 0; break; case 3: - strp->gain_control()->set_automation_state (ARDOUR::AutoState::Touch); + strp->gain_control()->set_automation_state (ARDOUR::Touch); ret = 0; break; default: diff --git a/libs/surfaces/osc/osc_route_observer.cc b/libs/surfaces/osc/osc_route_observer.cc index 049098f0b1..d721c2dd60 100644 --- a/libs/surfaces/osc/osc_route_observer.cc +++ b/libs/surfaces/osc/osc_route_observer.cc @@ -44,7 +44,7 @@ OSCRouteObserver::OSCRouteObserver (boost::shared_ptr s, lo_address a addr = lo_address_new (lo_address_get_hostname(a) , lo_address_get_port(a)); gainmode = sur->gainmode; feedback = sur->feedback; - as = ARDOUR::AutoState::Off; + as = ARDOUR::Off; if (feedback[0]) { // buttons are separate feedback _strip->PropertyChanged.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCRouteObserver::name_changed, this, boost::lambda::_1), OSC::instance()); @@ -223,7 +223,7 @@ OSCRouteObserver::tick () } } if (feedback[1]) { - if (as != ARDOUR::AutoState::Off) { + if (as != ARDOUR::Off) { if(_last_gain != _strip->gain_control()->get_value()) { _last_gain = _strip->gain_control()->get_value(); if (gainmode) { diff --git a/libs/surfaces/osc/osc_select_observer.cc b/libs/surfaces/osc/osc_select_observer.cc index 2cc42569cc..edd3baab2f 100644 --- a/libs/surfaces/osc/osc_select_observer.cc +++ b/libs/surfaces/osc/osc_select_observer.cc @@ -52,7 +52,7 @@ OSCSelectObserver::OSCSelectObserver (boost::shared_ptr s, lo_address ,_last_gain (0.0) { addr = lo_address_new (lo_address_get_hostname(a) , lo_address_get_port(a)); - as = ARDOUR::AutoState::Off; + as = ARDOUR::Off; if (feedback[0]) { // buttons are separate feedback _strip->PropertyChanged.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::name_changed, this, boost::lambda::_1), OSC::instance()); @@ -372,7 +372,7 @@ OSCSelectObserver::tick () } } if (feedback[1]) { - if (as != ARDOUR::AutoState::Off) { + if (as != ARDOUR::Off) { if(_last_gain != _strip->gain_control()->get_value()) { _last_gain = _strip->gain_control()->get_value(); if (gainmode) {