From d7dfb9bf8b404a434c8b867dcba43ec3efa28f3c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 23 Sep 2019 15:32:45 +0200 Subject: Make EDI input buffer configurable --- src/input/Edi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/input/Edi.cpp') diff --git a/src/input/Edi.cpp b/src/input/Edi.cpp index 98e8e9c..ec0f17b 100644 --- a/src/input/Edi.cpp +++ b/src/input/Edi.cpp @@ -44,11 +44,13 @@ namespace Inputs { constexpr bool VERBOSE = false; constexpr size_t TCP_BLOCKSIZE = 2048; -Edi::Edi(const std::string& name) : +Edi::Edi(const std::string& name, const dab_input_edi_config_t& config) : RemoteControllable(name), m_tcp_receive_server(TCP_BLOCKSIZE), m_sti_writer(), m_sti_decoder(m_sti_writer, VERBOSE), + m_max_frames_overrun(config.buffer_size), + m_num_frames_prebuffering(config.prebuffering), m_name(name), m_stats(name) { -- cgit v1.2.3