diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-04-23 11:18:08 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-04-23 11:18:08 +0200 |
commit | 103841bc578888a828d176eddfdd9fa345549f03 (patch) | |
tree | 6e4f14251adf2b1d6249f2b030aacec7e759b1fd /src/fig/FIG.h | |
parent | 397905cb5079205e2a4bb64cca35517e60c01a58 (diff) | |
download | dabmux-103841bc578888a828d176eddfdd9fa345549f03.tar.gz dabmux-103841bc578888a828d176eddfdd9fa345549f03.tar.bz2 dabmux-103841bc578888a828d176eddfdd9fa345549f03.zip |
Rework FIG0/10 DAB time indication to match EDI time
Diffstat (limited to 'src/fig/FIG.h')
-rw-r--r-- | src/fig/FIG.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fig/FIG.h b/src/fig/FIG.h index 9752245..eda4671 100644 --- a/src/fig/FIG.h +++ b/src/fig/FIG.h @@ -35,11 +35,19 @@ namespace FIC { class FIGRuntimeInformation { public: - FIGRuntimeInformation(std::shared_ptr<dabEnsemble>& e) : + + using dab_time_t = std::pair<uint32_t /* milliseconds */, time_t>; + using get_time_func_t = std::function<dab_time_t()>; + + FIGRuntimeInformation( + std::shared_ptr<dabEnsemble>& e, + get_time_func_t getTimeFunc) : + getTimeFunc(getTimeFunc), currentFrame(0), ensemble(e), factumAnalyzer(false) {} + get_time_func_t getTimeFunc; unsigned long currentFrame; std::shared_ptr<dabEnsemble> ensemble; bool factumAnalyzer; |