diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-05-13 10:16:16 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:14 -0400 |
commit | 68aab0153cc96b2882223f950876ed033cc19c64 (patch) | |
tree | 43552b480c5e3260bfd5c18c01a0d3419512595a /libs/ardour/session_state.cc | |
parent | 440618bc85506384c01223dc6501a4a7abad4391 (diff) |
rename Session::add_session_range_location() to ::set_session_range_location()
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 16 |
1 files changed, 15 insertions, 1 deletions
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; |