summaryrefslogtreecommitdiffstats
path: root/src/DabMultiplexer.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-04 23:02:48 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-04 23:02:48 +0100
commit7c6dac7fa29ccd84da890aee7a0b1004dcd93d8b (patch)
treec01bf35a1e0dfe87e3bd13de2f9d695ad2f47ed8 /src/DabMultiplexer.h
parent8e821c7f8ef72415d84e3f78270c1ae1a85a5304 (diff)
downloaddabmux-7c6dac7fa29ccd84da890aee7a0b1004dcd93d8b.tar.gz
dabmux-7c6dac7fa29ccd84da890aee7a0b1004dcd93d8b.tar.bz2
dabmux-7c6dac7fa29ccd84da890aee7a0b1004dcd93d8b.zip
Align CIF Count and timestamp on startup
Diffstat (limited to 'src/DabMultiplexer.h')
-rw-r--r--src/DabMultiplexer.h7
1 files changed, 4 insertions, 3 deletions
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 <memory>
#include <boost/property_tree/ptree.hpp>
+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<std::shared_ptr<DabOutput> >& outputs);
@@ -89,8 +91,7 @@ class DabMultiplexer : public RemoteControllable {
edi::configuration_t edi_conf;
std::shared_ptr<edi::Sender> edi_sender;
- uint32_t sync = 0x49C5F8;
- unsigned long currentFrame = 0;
+ unsigned long m_currentFrame = 0;
std::shared_ptr<dabEnsemble> ensemble;