From 38fbf3c30262b03d66fd3bd31169670b5cecb8bf Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 17 Jun 2016 15:41:28 -0400 Subject: [PATCH] change Session::goto_start() to take an argument to optionally roll after locate --- libs/ardour/ardour/session.h | 2 +- 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); } }