summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-12-10 15:47:32 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-12-10 15:47:32 +0100
commit66c2acf2606877d00e056c1d1228b32d0a15c5bc (patch)
treeb520bf648e8c511d772266e26bccf527859dbd1a /src/ConfigParser.cpp
parente845a4188b93a31445a780ae11f33286420cb038 (diff)
downloaddabmux-66c2acf2606877d00e056c1d1228b32d0a15c5bc.tar.gz
dabmux-66c2acf2606877d00e056c1d1228b32d0a15c5bc.tar.bz2
dabmux-66c2acf2606877d00e056c1d1228b32d0a15c5bc.zip
Make EDI input TIST delay configurable
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index 063e4ec..776ddc8 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -51,11 +51,12 @@
#include <boost/algorithm/string/split.hpp>
#include <cstdint>
#include <cstring>
-#include <memory>
+#include <chrono>
#include <exception>
#include <iostream>
-#include <string>
#include <map>
+#include <memory>
+#include <string>
#include <vector>
using namespace std;
@@ -1037,6 +1038,9 @@ static void setup_subchannel_from_ptree(shared_ptr<DabSubchannel>& subchan,
throw runtime_error("Subchannel with uid " + subchanuid + " has invalid buffer-management !");
}
+ const int32_t tist_delay = pt.get("tist-delay", 0);
+ subchan->input->setTistDelay(chrono::milliseconds(tist_delay));
+
subchan->startAddress = 0;
dabProtection* protection = &subchan->protection;