OSC scrub, fix numbers to work with usec rather than msec.
This commit is contained in:
parent
e5182f3eb4
commit
2abefde534
@ -1762,10 +1762,10 @@ OSC::scrub (float delta, lo_message msg)
|
||||
|
||||
int64_t now = ARDOUR::get_microseconds ();
|
||||
int64_t diff = now - scrub_time;
|
||||
if (diff > 35) {
|
||||
if (diff > 35000) {
|
||||
// speed 1 (or 0 if jog wheel supports touch)
|
||||
speed = delta;
|
||||
} else if ((diff > 20) && (fabs(scrub_speed) == 1)) {
|
||||
} else if ((diff > 20000) && (fabs(scrub_speed) == 1)) {
|
||||
// add some hysteresis to stop excess speed jumps
|
||||
speed = delta;
|
||||
} else {
|
||||
@ -3616,7 +3616,7 @@ OSC::periodic (void)
|
||||
// for those jog wheels that don't have 0 on release (touch), time out.
|
||||
int64_t now = ARDOUR::get_microseconds ();
|
||||
int64_t diff = now - scrub_time;
|
||||
if (diff > 100) {
|
||||
if (diff > 120000) {
|
||||
scrub_speed = 0;
|
||||
session->request_transport_speed (0);
|
||||
// locate to the place PH was at last tick
|
||||
|
Loading…
Reference in New Issue
Block a user