summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2017-05-13 19:28:33 -0700
committerLen Ovens <len@ovenwerks.net>2017-05-15 07:43:59 -0700
commitfee4b7b3ea6079c9df1118d85226b4966f6526cf (patch)
tree95bc412f809a909676304ba342101a71826a6edb /libs
parentb9bbea71748dc190013d31eecd47a1edcf8a3fcc (diff)
OSC: combine two identical if() statements
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/osc/osc_route_observer.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/surfaces/osc/osc_route_observer.cc b/libs/surfaces/osc/osc_route_observer.cc
index e8f94946f2..8690a47a7f 100644
--- a/libs/surfaces/osc/osc_route_observer.cc
+++ b/libs/surfaces/osc/osc_route_observer.cc
@@ -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());
}
}
}