diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-17 15:41:28 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:29 -0500 |
commit | 38fbf3c30262b03d66fd3bd31169670b5cecb8bf (patch) | |
tree | 8614508d34b2745efe64f13d57d02708b58f81bc | |
parent | f699773490ffc4b7380eede4e529c66416f965ac (diff) |
change Session::goto_start() to take an argument to optionally roll after locate
-rw-r--r-- | libs/ardour/ardour/session.h | 2 | ||||
-rw-r--r-- | libs/ardour/session.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 80fe71fd1f..519d614248 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -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); diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 69d0b082e2..c96c549431 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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); } } |