fix vari-speed stuck at zero and playing backwards.
authorRobin Gareus <robin@gareus.org>
Sun, 30 Dec 2012 21:50:05 +0000 (21:50 +0000)
committerRobin Gareus <robin@gareus.org>
Sun, 30 Dec 2012 21:50:05 +0000 (21:50 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13747 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session_transport.cc

index 037ca83484d7d2eac3dae266096f9ff995e1910a..12e6255b2a7e5d2ce4ed3d839bd58b21acfcb80c 100644 (file)
@@ -258,6 +258,16 @@ Session::realtime_stop (bool abort, bool clear_state)
 
        reset_slave_state ();
 
+       /* XXX hack alert - hot-fix when playing backwards and hitting zero.
+        * This is probably not the right place for a long term solution of the issue.
+        *
+        * "hitting zero should just stop, and even if it didn't, pressing play should put the transport
+        * into forward play speed regardless.  Nothing else makes sense." (oofus on #ardour, 20121230)
+        */
+       if (_transport_frame == 0 && _transport_speed < 0 ) {
+                       _default_transport_speed = 1.0;
+       }
+
        _transport_speed = 0;
        _target_transport_speed = 0;