From 496a1e69655e1324d20d2e46efca780ba4b357c5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 11 Apr 2012 20:25:14 +0000 Subject: [PATCH] MCP: repeated presses of play button will jump back to previous start (like GUI button) git-svn-id: svn://localhost/ardour2/branches/3.0@11918 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/mackie/mcp_buttons.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/mackie/mcp_buttons.cc b/libs/surfaces/mackie/mcp_buttons.cc index dcf311d08f..1085c7a22d 100644 --- a/libs/surfaces/mackie/mcp_buttons.cc +++ b/libs/surfaces/mackie/mcp_buttons.cc @@ -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; }