diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-12-20 21:26:17 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-12-20 21:26:17 +0000 |
| commit | 13b133de7fb5b953c23c58790c2d1f2a8bf4009c (patch) | |
| tree | c111b96c5ddc9fd4ecf94943304bf4185bdd1092 /src/lib/audio_content.cc | |
| parent | c1b4697530ff58b36d956afcc39d92448353358d (diff) | |
Allow configuration of default audio delay (#276).
Diffstat (limited to 'src/lib/audio_content.cc')
| -rw-r--r-- | src/lib/audio_content.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/audio_content.cc b/src/lib/audio_content.cc index 97372b962..b4c4f34b6 100644 --- a/src/lib/audio_content.cc +++ b/src/lib/audio_content.cc @@ -23,6 +23,7 @@ #include "job_manager.h" #include "film.h" #include "exceptions.h" +#include "config.h" #include "i18n.h" @@ -42,7 +43,7 @@ int const AudioContentProperty::AUDIO_MAPPING = 205; AudioContent::AudioContent (shared_ptr<const Film> f, Time s) : Content (f, s) , _audio_gain (0) - , _audio_delay (0) + , _audio_delay (Config::instance()->default_audio_delay ()) { } @@ -50,7 +51,7 @@ AudioContent::AudioContent (shared_ptr<const Film> f, Time s) AudioContent::AudioContent (shared_ptr<const Film> f, boost::filesystem::path p) : Content (f, p) , _audio_gain (0) - , _audio_delay (0) + , _audio_delay (Config::instance()->default_audio_delay ()) { } |
