13
0

OSC: combine two identical if() statements

This commit is contained in:
Len Ovens 2017-05-13 19:28:33 -07:00
parent b9bbea7174
commit fee4b7b3ea

View File

@ -221,15 +221,13 @@ OSCRouteObserver::tick ()
} }
trim_timeout--; trim_timeout--;
} }
} if (as == ARDOUR::Play || as == ARDOUR::Touch) {
if (feedback[1]) {
if (as != ARDOUR::Off) {
if(_last_gain != _strip->gain_control()->get_value()) { if(_last_gain != _strip->gain_control()->get_value()) {
_last_gain = _strip->gain_control()->get_value(); _last_gain = _strip->gain_control()->get_value();
if (gainmode) { if (gainmode) {
send_gain_message ("/strip/fader", _strip->gain_control()); send_gain_message ("/strip/fader", _strip->gain_control());
} else { } else {
send_gain_message ("/strip/fader", _strip->gain_control()); send_gain_message ("/strip/gain", _strip->gain_control());
} }
} }
} }