aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edi/STIWriter.hpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-19 14:48:13 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-19 14:48:13 +0200
commit26b20a9aa0167b64e75b813aaf9b41557b4de3df (patch)
tree8ea23fc867cde052a70795159e8c122dccd763a7 /lib/edi/STIWriter.hpp
parent9067a63a4dd433c6109ba0157db516c9cac398e4 (diff)
downloaddabmux-26b20a9aa0167b64e75b813aaf9b41557b4de3df.tar.gz
dabmux-26b20a9aa0167b64e75b813aaf9b41557b4de3df.tar.bz2
dabmux-26b20a9aa0167b64e75b813aaf9b41557b4de3df.zip
Common 44ae39c: Make SEQ and PSEQ available on EDI receive and improve error handling
Diffstat (limited to 'lib/edi/STIWriter.hpp')
-rw-r--r--lib/edi/STIWriter.hpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/edi/STIWriter.hpp b/lib/edi/STIWriter.hpp
index a7a5cda..2454a74 100644
--- a/lib/edi/STIWriter.hpp
+++ b/lib/edi/STIWriter.hpp
@@ -36,6 +36,7 @@ struct sti_frame_t {
frame_timestamp_t timestamp;
audio_level_data audio_levels;
odr_version_data version_data;
+ seq_info_t sequence_counters;
};
class STIWriter : public STIDataCollector {
@@ -48,22 +49,22 @@ class STIWriter : public STIDataCollector {
virtual void update_protocol(
const std::string& proto,
uint16_t major,
- uint16_t minor);
+ uint16_t minor) override;
- virtual void update_stat(uint8_t stat, uint16_t spid);
+ virtual void update_stat(uint8_t stat, uint16_t spid) override;
virtual void update_edi_time(
uint32_t utco,
- uint32_t seconds);
+ uint32_t seconds) override;
- virtual void update_rfad(std::array<uint8_t, 9> rfad);
- virtual void update_sti_management(const sti_management_data& data);
- virtual void add_payload(sti_payload_data&& payload);
+ virtual void update_rfad(std::array<uint8_t, 9> rfad) override;
+ virtual void update_sti_management(const sti_management_data& data) override;
+ virtual void add_payload(sti_payload_data&& payload) override;
- virtual void update_audio_levels(const audio_level_data& data);
- virtual void update_odr_version(const odr_version_data& data);
+ virtual void update_audio_levels(const audio_level_data& data) override;
+ virtual void update_odr_version(const odr_version_data& data) override;
- virtual void assemble(void);
+ virtual void assemble(seq_info_t seq) override;
private:
std::function<void(sti_frame_t&&)> m_frame_callback;