13
0

change Session::goto_start() to take an argument to optionally roll after locate

This commit is contained in:
Paul Davis 2016-06-17 15:41:28 -04:00
parent f699773490
commit 38fbf3c302
2 changed files with 4 additions and 4 deletions

View 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);

View 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);
}
}