diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-18 22:40:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-20 22:11:33 +0200 |
| commit | fdb36750a09e3bba3d10fe5102e39a62eda68ea6 (patch) | |
| tree | f65fea53ea0638faca28d2840759ea40b9901557 /src/lib/audio_content.h | |
| parent | 040889631af47829e8523742bb828788e8f7e138 (diff) | |
Add button to use same fades for audio as video (#2230).
Diffstat (limited to 'src/lib/audio_content.h')
| -rw-r--r-- | src/lib/audio_content.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h index ba998a5ad..82a9de041 100644 --- a/src/lib/audio_content.h +++ b/src/lib/audio_content.h @@ -44,6 +44,7 @@ public: static int const DELAY; static int const FADE_IN; static int const FADE_OUT; + static int const USE_SAME_FADES_AS_VIDEO; }; @@ -78,18 +79,12 @@ public: return _delay; } - dcpomatic::ContentTime fade_in () const { - boost::mutex::scoped_lock lm (_mutex); - return _fade_in; - } - - dcpomatic::ContentTime fade_out () const { - boost::mutex::scoped_lock lm (_mutex); - return _fade_out; - } + dcpomatic::ContentTime fade_in () const; + dcpomatic::ContentTime fade_out () const; void set_fade_in (dcpomatic::ContentTime time); void set_fade_out (dcpomatic::ContentTime time); + void set_use_same_fades_as_video (bool s); std::string processing_description (std::shared_ptr<const Film> film) const; @@ -125,6 +120,7 @@ private: int _delay = 0; dcpomatic::ContentTime _fade_in; dcpomatic::ContentTime _fade_out; + bool _use_same_fades_as_video = false; std::vector<AudioStreamPtr> _streams; }; |
