diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-03-23 23:05:14 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-03-23 23:05:14 +0100 |
commit | ef6ea5ab6b927fcf9e5152fbf44f72646848d2c9 (patch) | |
tree | bc438ec3094b00eeee973766074e55e56f47cfd2 /lib/edioutput/PFT.cpp | |
parent | d57e0e9635a18f226394b9f41feef1658a2e051c (diff) | |
download | dabmux-next.tar.gz dabmux-next.tar.bz2 dabmux-next.zip |
Common b23da85: make PFT per-output configurablenext
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 |