summaryrefslogtreecommitdiff
path: root/libs/surfaces/osc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2017-06-23 15:03:37 -0700
committerLen Ovens <len@ovenwerks.net>2017-06-23 17:09:54 -0700
commit2ea14c25ecfe08f6ce68365357840f79ccf5fb8a (patch)
treed9c79f2f1ade188e2a188a7c3108844a8e1aada6 /libs/surfaces/osc
parent2106ab431b6e4e8af8c2336c273f55444b047ebe (diff)
OSC: Messages too fast at bank_change/refresh slowed down.
Diffstat (limited to 'libs/surfaces/osc')
-rw-r--r--libs/surfaces/osc/osc.cc2
-rw-r--r--libs/surfaces/osc/osc_route_observer.cc2
2 files changed, 2 insertions, 2 deletions
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<GainControl> 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);