mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
OSC: combine two identical if() statements
This commit is contained in:
parent
b9bbea7174
commit
fee4b7b3ea
1 changed files with 2 additions and 4 deletions
|
|
@ -221,15 +221,13 @@ OSCRouteObserver::tick ()
|
|||
}
|
||||
trim_timeout--;
|
||||
}
|
||||
}
|
||||
if (feedback[1]) {
|
||||
if (as != ARDOUR::Off) {
|
||||
if (as == ARDOUR::Play || as == ARDOUR::Touch) {
|
||||
if(_last_gain != _strip->gain_control()->get_value()) {
|
||||
_last_gain = _strip->gain_control()->get_value();
|
||||
if (gainmode) {
|
||||
send_gain_message ("/strip/fader", _strip->gain_control());
|
||||
} else {
|
||||
send_gain_message ("/strip/fader", _strip->gain_control());
|
||||
send_gain_message ("/strip/gain", _strip->gain_control());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue