summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-02 11:20:24 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-14 10:20:41 +0100
commitd2bd0c628fd0616fe3b7dd02bd955b2c07ab48d5 (patch)
treee974870e7e4b6014520b461a19a7b336eb7617a3 /src/lib/config.h
parentc138f4050bffbdc97edca8a824297f155dc62da3 (diff)
Add option to analyse audio automatically when content is added (#673).
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index fc63c518c..2f68ea31c 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -226,6 +226,10 @@ public:
return _log_types;
}
+ bool automatic_audio_analysis () const {
+ return _automatic_audio_analysis;
+ }
+
#ifdef DCPOMATIC_WINDOWS
bool win32_console () const {
return _win32_console;
@@ -407,6 +411,10 @@ public:
maybe_set (_log_types, t);
}
+ void set_automatic_audio_analysis (bool a) {
+ maybe_set (_automatic_audio_analysis, a);
+ }
+
#ifdef DCPOMATIC_WINDOWS
void set_win32_console (bool c) {
maybe_set (_win32_console, c);
@@ -505,6 +513,7 @@ private:
/** maximum allowed J2K bandwidth in bits per second */
int _maximum_j2k_bandwidth;
int _log_types;
+ bool _automatic_audio_analysis;
#ifdef DCPOMATIC_WINDOWS
bool _win32_console;
#endif