From 210336e55efa9ccc6295f8767935570532e80a41 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 22 Aug 2022 17:14:23 +0200 Subject: Add pre-roll burst config setting This includes Common 306b5fc --- src/DabMux.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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(); dest->listen_port = pt_edi_dest.second.get("listenport"); dest->max_frames_queued = pt_edi_dest.second.get("max_frames_queued", 500); + double preroll = pt_edi_dest.second.get("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("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("dump", false); edi_conf.enable_pft = pt_edi.get("enable_pft", false); edi_conf.verbose = pt_edi.get("verbose", false); -- cgit v1.2.3