diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-07-11 10:42:09 +0200 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-07-11 10:42:09 +0200 |
| commit | 7e59a191cd2545a4b024c6cf78a4c7c6c1d4956e (patch) | |
| tree | 896a1705c3440042d7310900adba8dcb25c9a81d /lib/edioutput/PFT.cpp | |
| parent | 228ec291a58869a19b368a536f3ea0fcd97a57b6 (diff) | |
| download | ODR-SourceCompanion-7e59a191cd2545a4b024c6cf78a4c7c6c1d4956e.tar.gz ODR-SourceCompanion-7e59a191cd2545a4b024c6cf78a4c7c6c1d4956e.tar.bz2 ODR-SourceCompanion-7e59a191cd2545a4b024c6cf78a4c7c6c1d4956e.zip | |
common: EDI per-output PFT config; allow setting TTL without UDP source
Diffstat (limited to 'lib/edioutput/PFT.cpp')
| -rw-r--r-- | lib/edioutput/PFT.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/edioutput/PFT.cpp b/lib/edioutput/PFT.cpp index 7e0e8e9..f65fd67 100644 --- a/lib/edioutput/PFT.cpp +++ b/lib/edioutput/PFT.cpp @@ -1,5 +1,5 @@ /* - Copyright (C) 2021 + Copyright (C) 2025 Matthias P. Braendli, matthias.braendli@mpb.li http://www.opendigitalradio.org @@ -31,7 +31,6 @@ */ #include <vector> -#include <list> #include <cstdio> #include <cstring> #include <cstdint> @@ -41,6 +40,7 @@ #include "PFT.h" #include "crc.h" #include "ReedSolomon.h" +#include "Log.h" namespace edi { @@ -51,11 +51,10 @@ using namespace std; PFT::PFT() { } -PFT::PFT(const configuration_t &conf) : +PFT::PFT(const pft_settings_t& conf) : + m_enabled(conf.enable_pft), m_k(conf.chunk_len), m_m(conf.fec), - m_pseq(0), - m_num_chunks(0), m_verbose(conf.verbose) { if (m_k > 207) { @@ -324,5 +323,4 @@ void PFT::OverridePSeq(uint16_t pseq) m_pseq = pseq; } -} - +} // namespace edi |
