OSC: combine two identical if() statements
authorLen Ovens <len@ovenwerks.net>
Sun, 14 May 2017 02:28:33 +0000 (19:28 -0700)
committerLen Ovens <len@ovenwerks.net>
Mon, 15 May 2017 14:43:59 +0000 (07:43 -0700)
libs/surfaces/osc/osc_route_observer.cc

index e8f94946f211993f947a557475b268624ba23f9c..8690a47a7f6e507d3d844d4c8a7556275c13cbb2 100644 (file)
@@ -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());
                                }
                        }
                }