From 8741a5885b7bbffa73071583b9e927ce5ac1aaf6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 29 Feb 2016 15:13:06 +0100 Subject: configurable export preroll --- libs/ardour/ardour/rc_configuration_vars.h | 2 ++ libs/ardour/session_export.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3