summaryrefslogtreecommitdiffstats
path: root/src/input/Edi.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-23 15:32:45 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-23 15:32:45 +0200
commitd7dfb9bf8b404a434c8b867dcba43ec3efa28f3c (patch)
treee9a591ed473d09f9992b0fecf751a48c51a565e9 /src/input/Edi.cpp
parent907534bccee046c0499e9f936873c229b247ef95 (diff)
downloaddabmux-d7dfb9bf8b404a434c8b867dcba43ec3efa28f3c.tar.gz
dabmux-d7dfb9bf8b404a434c8b867dcba43ec3efa28f3c.tar.bz2
dabmux-d7dfb9bf8b404a434c8b867dcba43ec3efa28f3c.zip
Make EDI input buffer configurable
Diffstat (limited to 'src/input/Edi.cpp')
-rw-r--r--src/input/Edi.cpp4
1 files changed, 3 insertions, 1 deletions
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)
{