summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-11-03 23:07:55 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-11-03 23:07:55 +0000
commita8deaab02f49cb04090a9c06fe50ab685359f940 (patch)
tree9f0ee600a2000f250fce9eb179a1c305216928ae /libs/ardour/session.cc
parent975e44f92480f8ce170637d6b58b48a06e34ca7c (diff)
Fixed template dialog annoyance.
Fixed Location saving in templates. git-svn-id: svn://localhost/ardour2/trunk@1068 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index d871f5a859..59e798b5d5 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -278,7 +278,7 @@ Session::Session (AudioEngine &eng,
new_session = !g_file_test (_path.c_str(), GFileTest (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR));
if (new_session) {
- if (create (new_session, mix_template, _engine.frame_rate() * 60 * 5)) {
+ if (create (new_session, mix_template, compute_initial_length())) {
cerr << "create failed\n";
throw failed_constructor ();
}
@@ -3768,3 +3768,10 @@ Session::add_automation_list(AutomationList *al)
{
automation_lists[al->id()] = al;
}
+
+nframes_t
+Session::compute_initial_length ()
+{
+ return _engine.frame_rate() * 60 * 5;
+}
+