aboutsummaryrefslogtreecommitdiffstats
path: root/src/Outputs.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-08-21 10:08:51 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-08-21 10:08:51 +0200
commitfa5f92318e7cc08ac872be18d47387cf83c23cd0 (patch)
tree118b12cf95b478fd20916f745c0d1a7873e16040 /src/Outputs.h
parent781c2c69c62a434bed64ff3cfa6d009ed3c479c1 (diff)
downloadODR-AudioEnc-fa5f92318e7cc08ac872be18d47387cf83c23cd0.tar.gz
ODR-AudioEnc-fa5f92318e7cc08ac872be18d47387cf83c23cd0.tar.bz2
ODR-AudioEnc-fa5f92318e7cc08ac872be18d47387cf83c23cd0.zip
Add tist support for EDI output, take code from odr-mmbtools-common
Diffstat (limited to 'src/Outputs.h')
-rw-r--r--src/Outputs.h12
1 files changed, 10 insertions, 2 deletions
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 <vector>
+#include <chrono>
#include <deque>
#include <cstdint>
#include <cstddef>
#include <cstdio>
#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<edi::Sender> 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;
};
}