aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-08-22 17:14:23 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-08-22 17:14:23 +0200
commit210336e55efa9ccc6295f8767935570532e80a41 (patch)
treea45201636c81474a7966692551a59efc0e78df2d /src/DabMux.cpp
parente2929565c4a0d2bcacae1d30a126d72a45061501 (diff)
downloaddabmux-210336e55efa9ccc6295f8767935570532e80a41.tar.gz
dabmux-210336e55efa9ccc6295f8767935570532e80a41.tar.bz2
dabmux-210336e55efa9ccc6295f8767935570532e80a41.zip
Add pre-roll burst config setting
This includes Common 306b5fc
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 4373265..f6a69bb 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -348,6 +348,9 @@ int main(int argc, char *argv[])
auto dest = make_shared<edi::tcp_server_t>();
dest->listen_port = pt_edi_dest.second.get<unsigned int>("listenport");
dest->max_frames_queued = pt_edi_dest.second.get<size_t>("max_frames_queued", 500);
+ double preroll = pt_edi_dest.second.get<double>("preroll-burst", 0.0);
+ dest->tcp_server_preroll_buffers = ceil(preroll / 24e-3);
+
edi_conf.destinations.push_back(dest);
}
else {
@@ -355,11 +358,6 @@ int main(int argc, char *argv[])
}
}
- const auto tist_offset = pt.get<int>("general.tist_offset", 0);
- // By keeping 1.5 x tist_offset worth of EDI in the pre-roll buffer, we ensure that a new client can
- // immediately send out frames according to their timestamp.
- edi_conf.tcp_server_preroll_buffers = ceil(1.5 * (tist_offset / 24e-3));
-
edi_conf.dump = pt_edi.get<bool>("dump", false);
edi_conf.enable_pft = pt_edi.get<bool>("enable_pft", false);
edi_conf.verbose = pt_edi.get<bool>("verbose", false);