diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-07-28 16:11:32 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-07-28 16:11:32 +0200 |
commit | 5d1b6420535c72d7a8df85a5db08ff1c0230690a (patch) | |
tree | f1263f6d67776b884fd484fdb87552a2fa147656 /src/dabOutput/metadata.cpp | |
parent | a1921a1a967b65c99a830141e9faaecd77b0f317 (diff) | |
download | dabmux-5d1b6420535c72d7a8df85a5db08ff1c0230690a.tar.gz dabmux-5d1b6420535c72d7a8df85a5db08ff1c0230690a.tar.bz2 dabmux-5d1b6420535c72d7a8df85a5db08ff1c0230690a.zip |
Add work in progress odr-zmq2edi
Diffstat (limited to 'src/dabOutput/metadata.cpp')
-rw-r--r-- | src/dabOutput/metadata.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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<uint8_t>(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); +} + |