summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-29 15:13:06 +0100
committerRobin Gareus <robin@gareus.org>2016-02-29 15:13:06 +0100
commit8741a5885b7bbffa73071583b9e927ce5ac1aaf6 (patch)
tree307ab9895a159ed50c2ffebede789df4db1c1f30 /libs/ardour
parent33545e552be1a92fc1f8a13bc9eb06da700110aa (diff)
configurable export preroll
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/ardour/rc_configuration_vars.h2
-rw-r--r--libs/ardour/session_export.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/ardour/rc_configuration_vars.h b/libs/ardour/ardour/rc_configuration_vars.h
index 39f7709697..cb0dc4ead2 100644
--- a/libs/ardour/ardour/rc_configuration_vars.h
+++ b/libs/ardour/ardour/rc_configuration_vars.h
@@ -271,3 +271,5 @@ CONFIG_VARIABLE (std::string, video_server_docroot, "video-server-docroot", "C:\
#endif
CONFIG_VARIABLE (bool, show_video_export_info, "show-video-export-info", true)
CONFIG_VARIABLE (bool, show_video_server_dialog, "show-video-server-dialog", false)
+
+CONFIG_VARIABLE (float, export_preroll, "export-preroll", 10.0) // seconds
diff --git a/libs/ardour/session_export.cc b/libs/ardour/session_export.cc
index 6b54db3826..efb731463f 100644
--- a/libs/ardour/session_export.cc
+++ b/libs/ardour/session_export.cc
@@ -110,7 +110,7 @@ Session::start_audio_export (framepos_t position)
pre_export ();
}
- _export_preroll = 10.0 * nominal_frame_rate (); // TODO make configurable
+ _export_preroll = Config->get_export_preroll() * nominal_frame_rate ();
/* We're about to call Track::seek, so the butler must have finished everything
up otherwise it could be doing do_refill in its thread while we are doing