MCP: repeated presses of play button will jump back to previous start (like GUI button)
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 11 Apr 2012 20:25:14 +0000 (20:25 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 11 Apr 2012 20:25:14 +0000 (20:25 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11918 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/surfaces/mackie/mcp_buttons.cc

index dcf311d08f65bddfd3997bf4b020f2ae9e1ac826..1085c7a22dd51b76dc0e98d177b5e64edc8a1797 100644 (file)
@@ -472,7 +472,11 @@ MackieControlProtocol::stop_release (Button &)
 LedState 
 MackieControlProtocol::play_press (Button &)
 {
-       transport_play ();
+       /* if we're already rolling, and we're pressed
+          again, jump back to where we started last time
+       */
+
+       transport_play (session->transport_rolling());
        return none;
 }