From: Len Ovens Date: Fri, 23 Jun 2017 22:03:37 +0000 (-0700) Subject: OSC: Messages too fast at bank_change/refresh slowed down. X-Git-Tag: 5.11~430 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=2ea14c25ecfe08f6ce68365357840f79ccf5fb8a OSC: Messages too fast at bank_change/refresh slowed down. --- diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index e47e145327..4ec2f18d4b 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -1868,7 +1868,7 @@ OSC::_set_bank (uint32_t bank_start, lo_address addr) } } // slow devices need time to clear buffers - usleep ((uint32_t) 10); + usleep ((uint32_t) 20); } } // light bankup or bankdown buttons if it is possible to bank in that direction diff --git a/libs/surfaces/osc/osc_route_observer.cc b/libs/surfaces/osc/osc_route_observer.cc index 76c65961b5..b37f67e92e 100644 --- a/libs/surfaces/osc/osc_route_observer.cc +++ b/libs/surfaces/osc/osc_route_observer.cc @@ -389,6 +389,7 @@ OSCRouteObserver::gain_automation (string path) } boost::shared_ptr control = _strip->gain_control(); + send_gain_message (path, control); as = control->alist()->automation_state(); string auto_name; float output; @@ -413,7 +414,6 @@ OSCRouteObserver::gain_automation (string path) break; } - send_gain_message (path, control); lo_message_add_float (msg, output); lo_send_message (addr, apath.c_str(), msg); lo_message_free (msg);