summaryrefslogtreecommitdiff
path: root/libs/surfaces/tranzport
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-07 01:12:47 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-07 01:12:47 +0000
commit49869c98f359c68baa4ef6e26f7d5b36c348341c (patch)
treea957b1349c2aa7acb9a4a26e83f4d039b6550449 /libs/surfaces/tranzport
parent6be56d78b199452e5dba726f2d7aaab2777d2b49 (diff)
Prevent various things from stopping the transport by requesting a transport speed of exactly 0 when they are really just continuously varying it. Fixes strange playhead behaviour during varispeed when the user varispeeds to exactly 0 and auto-return is triggered.
git-svn-id: svn://localhost/ardour2/branches/3.0@8733 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/tranzport')
-rw-r--r--libs/surfaces/tranzport/wheel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaces/tranzport/wheel.cc b/libs/surfaces/tranzport/wheel.cc
index 87b935da4b..baa4ba079b 100644
--- a/libs/surfaces/tranzport/wheel.cc
+++ b/libs/surfaces/tranzport/wheel.cc
@@ -194,13 +194,13 @@ TranzportControlProtocol::shuttle ()
if (session->transport_speed() < 0) {
session->request_transport_speed (1.0);
} else {
- session->request_transport_speed (session->transport_speed() + 0.1);
+ session->request_transport_speed_nonzero (session->transport_speed() + 0.1);
}
} else {
if (session->transport_speed() > 0) {
session->request_transport_speed (-1.0);
} else {
- session->request_transport_speed (session->transport_speed() - 0.1);
+ session->request_transport_speed_nonzero (session->transport_speed() - 0.1);
}
}
}