From a6696b9a58c14d81f0ae30482051c2cd47a004db Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 2 Apr 2021 10:47:35 +0200 Subject: Add language to audio content and use it instead of the general metadata. --- src/lib/audio_content.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/audio_content.h') 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 /** @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 langauge); double gain () const { boost::mutex::scoped_lock lm (_mutex); @@ -74,6 +77,11 @@ public: return _delay; } + boost::optional language () const { + boost::mutex::scoped_lock lm (_mutex); + return _language; + } + std::string processing_description (std::shared_ptr film) const; std::vector streams () const { @@ -100,6 +108,7 @@ private: /** Delay to apply to audio (positive moves audio later) in milliseconds */ int _delay = 0; std::vector _streams; + boost::optional _language; }; #endif -- cgit v1.2.3