From fa5f92318e7cc08ac872be18d47387cf83c23cd0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 21 Aug 2019 10:08:51 +0200 Subject: Add tist support for EDI output, take code from odr-mmbtools-common --- src/Outputs.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/Outputs.h') diff --git a/src/Outputs.h b/src/Outputs.h index b5ee25a..131f35c 100644 --- a/src/Outputs.h +++ b/src/Outputs.h @@ -19,12 +19,14 @@ #pragma once #include +#include #include #include #include #include #include "common.h" #include "zmq.hpp" +#include "ClockTAI.h" #include "edi/TagItems.h" #include "edi/TagPacket.h" #include "edi/AFPacket.h" @@ -134,18 +136,24 @@ class EDI: public Base { void add_udp_destination(const std::string& host, unsigned int port); void add_tcp_destination(const std::string& host, unsigned int port); + void set_tist(bool enable, uint32_t delay_ms); + bool enabled() const; virtual bool write_frame(const uint8_t *buf, size_t len) override; - // TODO audio levels metadata - private: edi::configuration_t m_edi_conf; std::shared_ptr m_edi_sender; + uint32_t m_timestamp = 0; + std::time_t m_edi_time = 0; + edi::TagDSTI m_edi_tagDSTI; + ClockTAI m_clock_tai; + bool m_tist = false; + uint32_t m_delay_ms = 0; }; } -- cgit v1.2.3