diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-06-24 13:10:24 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-06-24 13:10:24 +0200 |
commit | 203f5adec61b2bfeb6b97eed242ff185da071c0d (patch) | |
tree | 5a76250f648d62e609eb2a2a907c5d76ab6b721f | |
parent | 6d90eb23c4a86906b5157feb34e1698bdbf58dd5 (diff) | |
download | dabmux-203f5adec61b2bfeb6b97eed242ff185da071c0d.tar.gz dabmux-203f5adec61b2bfeb6b97eed242ff185da071c0d.tar.bz2 dabmux-203f5adec61b2bfeb6b97eed242ff185da071c0d.zip |
Rename tist_at_fct0_us to -tist_at_fct0_ms
-rw-r--r-- | src/DabMultiplexer.cpp | 10 | ||||
-rw-r--r-- | src/DabMultiplexer.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index f0ffa16..52f053a 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -47,11 +47,11 @@ static vector<string> split_pipe_separated_string(const std::string& s) return components; } -uint64_t MuxTime::init(uint32_t tist_at_fct0_us, double tist_offset) +uint64_t MuxTime::init(uint32_t tist_at_fct0_ms, double tist_offset) { // Things we must guarantee, up to granularity of 24ms: // Difference between current time and EDI time = tist_offset - // TIST of frame 0 = tist_at_fct0_us + // TIST of frame 0 = tist_at_fct0_ms // In order to achieve the second, we calculate the initial // counter value so that FCT0 corresponds to the desired TIST. // @@ -74,7 +74,7 @@ uint64_t MuxTime::init(uint32_t tist_at_fct0_us, double tist_offset) m_edi_time = t_now; m_pps_offset_ms = std::lround(offset_ms / 24.0) * 24; - const auto counter_offset = tist_at_fct0_us / 24; + const auto counter_offset = tist_at_fct0_ms / 24; const auto offset_as_count = m_pps_offset_ms / 24; etiLog.level(debug) << "Init " << counter_offset << " " << offset_as_count; @@ -187,8 +187,8 @@ void DabMultiplexer::prepare(bool require_tai_clock) throw MuxInitException(); } - const uint32_t tist_at_fct0_us = m_pt.get<double>("general.tist_at_fct0", 0); - currentFrame = m_time.init(tist_at_fct0_us, m_pt.get<double>("general.tist_offset", 0.0)); + const uint32_t tist_at_fct0_ms = m_pt.get<double>("general.tist_at_fct0", 0); + currentFrame = m_time.init(tist_at_fct0_ms, m_pt.get<double>("general.tist_offset", 0.0)); m_time.mnsc_increment_time = false; bool tist_enabled = m_pt.get("general.tist", false); diff --git a/src/DabMultiplexer.h b/src/DabMultiplexer.h index c38d4dc..9306eed 100644 --- a/src/DabMultiplexer.h +++ b/src/DabMultiplexer.h @@ -68,7 +68,7 @@ class MuxTime { std::time_t mnsc_time = 0; /* Setup the time and return the initial currentFrame counter value */ - uint64_t init(uint32_t tist_at_fct0_us, double tist_offset); + uint64_t init(uint32_t tist_at_fct0_ms, double tist_offset); void increment_timestamp(); double tist_offset() const { return m_tist_offset_ms / 1000.0; } void set_tist_offset(double new_tist_offset); |