OSC: combine two identical if() statements
This commit is contained in:
parent
b9bbea7174
commit
fee4b7b3ea
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user