From 7c6dac7fa29ccd84da890aee7a0b1004dcd93d8b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 4 Mar 2023 23:02:48 +0100 Subject: Align CIF Count and timestamp on startup --- src/DabMultiplexer.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/DabMultiplexer.h') diff --git a/src/DabMultiplexer.h b/src/DabMultiplexer.h index 9d7d19b..3b521ff 100644 --- a/src/DabMultiplexer.h +++ b/src/DabMultiplexer.h @@ -50,6 +50,8 @@ #include #include +constexpr uint32_t ETI_FSYNC1 = 0x49C5F8; + class DabMultiplexer : public RemoteControllable { public: DabMultiplexer(boost::property_tree::ptree pt); @@ -59,7 +61,7 @@ class DabMultiplexer : public RemoteControllable { void prepare(bool require_tai_clock); - unsigned long getCurrentFrame() { return currentFrame; } + unsigned long getCurrentFrame() { return m_currentFrame; } void mux_frame(std::vector >& outputs); @@ -89,8 +91,7 @@ class DabMultiplexer : public RemoteControllable { edi::configuration_t edi_conf; std::shared_ptr edi_sender; - uint32_t sync = 0x49C5F8; - unsigned long currentFrame = 0; + unsigned long m_currentFrame = 0; std::shared_ptr ensemble; -- cgit v1.2.3