diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-02 10:47:35 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-02 10:47:35 +0200 |
| commit | a6696b9a58c14d81f0ae30482051c2cd47a004db (patch) | |
| tree | 0fb2983324b891f7dd3ecde04eb92dae00cb0a85 /src/lib/audio_content.h | |
| parent | a4b7d0af831b8cd9aafca5f2b264be416a7b1148 (diff) | |
Add language to audio content and use it instead of the general metadata.
Diffstat (limited to 'src/lib/audio_content.h')
| -rw-r--r-- | src/lib/audio_content.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h index 67183d0a4..adb5c9556 100644 --- a/src/lib/audio_content.h +++ b/src/lib/audio_content.h @@ -31,6 +31,7 @@ #include "content_part.h" #include "audio_stream.h" #include "audio_mapping.h" +#include <dcp/language_tag.h> /** @class AudioContentProperty @@ -42,6 +43,7 @@ public: static int const STREAMS; static int const GAIN; static int const DELAY; + static int const LANGUAGE; }; @@ -63,6 +65,7 @@ public: void set_gain (double); void set_delay (int); + void set_language (boost::optional<dcp::LanguageTag> langauge); double gain () const { boost::mutex::scoped_lock lm (_mutex); @@ -74,6 +77,11 @@ public: return _delay; } + boost::optional<dcp::LanguageTag> language () const { + boost::mutex::scoped_lock lm (_mutex); + return _language; + } + std::string processing_description (std::shared_ptr<const Film> film) const; std::vector<AudioStreamPtr> streams () const { @@ -100,6 +108,7 @@ private: /** Delay to apply to audio (positive moves audio later) in milliseconds */ int _delay = 0; std::vector<AudioStreamPtr> _streams; + boost::optional<dcp::LanguageTag> _language; }; #endif |
