From 68aab0153cc96b2882223f950876ed033cc19c64 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 13 May 2015 10:16:16 -0400 Subject: rename Session::add_session_range_location() to ::set_session_range_location() --- libs/ardour/session_state.cc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'libs/ardour/session_state.cc') diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index b51d7a7d69..003dac8f94 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -572,7 +572,21 @@ Session::create (const string& session_template, BusProfile* bus_profile) } - /* set initial start + end point */ + if (Profile->get_trx()) { + + /* set initial start + end point : ARDOUR::Session::session_end_shift long. + Remember that this is a brand new session. Sessions + loaded from saved state will get this range from the saved state. + */ + + set_session_range_location (0, 0); + + /* Initial loop location, from absolute zero, length 10 seconds */ + + Location* loc = new Location (*this, 0, 10.0 * _engine.sample_rate(), _("Loop"), Location::IsAutoLoop); + _locations->add (loc, true); + set_auto_loop_location (loc); + } _state_of_the_state = Clean; -- cgit v1.2.3