13
0

Enums are not Classes in C++98

This commit is contained in:
Robin Gareus 2017-05-10 04:29:41 +02:00
parent 7b0ac0e20a
commit e8387e101f
3 changed files with 8 additions and 8 deletions

View File

@ -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:

View File

@ -44,7 +44,7 @@ OSCRouteObserver::OSCRouteObserver (boost::shared_ptr<Stripable> 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) {

View File

@ -52,7 +52,7 @@ OSCSelectObserver::OSCSelectObserver (boost::shared_ptr<Stripable> 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) {