summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-12-04 23:17:20 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-12-06 13:41:17 +1000
commit6784923a0587e9549f129faa7c75d784028d11a1 (patch)
tree79a826eff69e34bd378f9cbb68d7bc9dbdf9edce
parent9e794af3eaa3f4f0bee6c5b900430af8b49633b8 (diff)
Fix export silence threshold by using a constant value for now
All float values defined in the CONFIG_VARIABLE macro seem like they are cast to at some stage before writing (another issue that needs addressing). The default value for export-silence-threshold (-INFINITY) is converted to a value of 0 and as a result nothing is exported with trim enabled. Use the same fixed silence threshold as Mixbus until proper bounds checking and GUI is in place. Related: #6412
-rw-r--r--libs/ardour/export_graph_builder.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc
index 7c5a434bee..5a9548ed07 100644
--- a/libs/ardour/export_graph_builder.cc
+++ b/libs/ardour/export_graph_builder.cc
@@ -641,12 +641,9 @@ ExportGraphBuilder::SilenceHandler::SilenceHandler (ExportGraphBuilder & parent,
max_frames_in = max_frames;
framecnt_t sample_rate = parent.session.nominal_frame_rate();
-#ifdef MIXBUS
- silence_trimmer.reset (new SilenceTrimmer<Sample>(max_frames_in, -90));
-#else
// TODO silence-threshold should be per export-preset, with Config->get_silence_threshold being the default
- silence_trimmer.reset (new SilenceTrimmer<Sample>(max_frames_in, Config->get_export_silence_threshold ()));
-#endif
+ silence_trimmer.reset (new SilenceTrimmer<Sample>(max_frames_in, -90));
+
silence_trimmer->set_trim_beginning (config.format->trim_beginning());
silence_trimmer->set_trim_end (config.format->trim_end());