From 5d1b6420535c72d7a8df85a5db08ff1c0230690a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 28 Jul 2017 16:11:32 +0200 Subject: Add work in progress odr-zmq2edi --- src/dabOutput/metadata.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/dabOutput/metadata.cpp') diff --git a/src/dabOutput/metadata.cpp b/src/dabOutput/metadata.cpp index 6dfd65c..cb355cc 100644 --- a/src/dabOutput/metadata.cpp +++ b/src/dabOutput/metadata.cpp @@ -59,6 +59,16 @@ size_t write_meta(output_metadata_id_e md, uint8_t *buf, T value) return 3 + len_value; } +size_t OutputMetadataSeparation::write(uint8_t *buf) +{ + buf[0] = static_cast(getId()); + + // Length 0 + buf[1] = 0; + buf[2] = 0; + return 3; +} + size_t OutputMetadataUTCO::write(uint8_t *buf) { return write_meta(getId(), buf, utco); @@ -68,3 +78,9 @@ size_t OutputMetadataEDITime::write(uint8_t *buf) { return write_meta(getId(), buf, seconds); } + +size_t OutputMetadataDLFC::write(uint8_t *buf) +{ + return write_meta(getId(), buf, dlfc); +} + -- cgit v1.2.3