From c5185cbf27cc01d0f097254d6a8e762a13281f52 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 23 Sep 2019 19:58:07 +0200 Subject: Pull common code from 547c789 --- lib/edioutput/TagItems.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'lib/edioutput/TagItems.h') diff --git a/lib/edioutput/TagItems.h b/lib/edioutput/TagItems.h index 25daa14..5c81b01 100644 --- a/lib/edioutput/TagItems.h +++ b/lib/edioutput/TagItems.h @@ -225,5 +225,29 @@ class TagStarDMY : public TagItem uint32_t length_; }; +// Custom TAG that carries version information of the EDI source +class TagODRVersion : public TagItem +{ + public: + TagODRVersion(const std::string& version, uint32_t uptime_s); + std::vector Assemble(); + + private: + std::string m_version; + uint32_t m_uptime; +}; + +// Custom TAG that carries audio level metadata +class TagODRAudioLevels : public TagItem +{ + public: + TagODRAudioLevels(int16_t audiolevel_left, int16_t audiolevel_right); + std::vector Assemble(); + + private: + int16_t m_audio_left; + int16_t m_audio_right; +}; + } -- cgit v1.2.3