only use 1/100th gap between markers if transport is stopped, to prevent repeated...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 10 Dec 2015 15:58:03 +0000 (10:58 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 16 Dec 2015 10:52:47 +0000 (05:52 -0500)
libs/surfaces/mackie/mcp_buttons.cc

index 6439004a9715200abff6c0330d02b3e439007c59..ab428c08d78bf4710232de04959caac337938675 100644 (file)
@@ -409,13 +409,13 @@ MackieControlProtocol::marker_press (Button &)
        string markername;
 
        /* Don't add another mark if one exists within 1/100th of a second of
-        * the current position.
+        * the current position and we're not rolling.
         */
 
 
        framepos_t where = session->audible_frame();
 
-       if (session->locations()->mark_at (where, session->frame_rate() / 100.0)) {
+       if (session->transport_stopped() && session->locations()->mark_at (where, session->frame_rate() / 100.0)) {
                return off;
        }