change Session::goto_start() to take an argument to optionally roll after locate
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 17 Jun 2016 19:41:28 +0000 (15:41 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 27 Sep 2016 19:59:29 +0000 (14:59 -0500)
libs/ardour/ardour/session.h
libs/ardour/session.cc

index 80fe71fd1feb077e844432fb88aa2904dc39af14..519d614248b8db23508c3a7db5bd4df4eaa64dd0 100644 (file)
@@ -425,7 +425,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
 
        framepos_t last_transport_start () const { return _last_roll_location; }
        void goto_end ();
-       void goto_start ();
+       void goto_start (bool and_roll = false);
        void use_rf_shuttle_speed ();
        void allow_auto_play (bool yn);
        void request_transport_speed (double speed, bool as_default = true);
index 69d0b082e28e06ca44886b85ffd8fb62e19a5c26..c96c549431056431bca15be0a8693ce3cf49b32a 100644 (file)
@@ -6294,12 +6294,12 @@ Session::goto_end ()
 }
 
 void
-Session::goto_start ()
+Session::goto_start (bool and_roll)
 {
        if (_session_range_location) {
-               request_locate (_session_range_location->start(), false);
+               request_locate (_session_range_location->start(), and_roll);
        } else {
-               request_locate (0, false);
+               request_locate (0, and_roll);
        }
 }