diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-08-15 00:03:04 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-08-15 00:03:04 +0200 |
commit | 3dab3da3f669e1f2c70fd81c13f67c9c5c77278a (patch) | |
tree | 17ad5b8949654a03cc741d7e910fecf3eb35a71a /src/MuxElements.h | |
parent | ebe8447f4cee32e2a096438ca0b458036f646b28 (diff) | |
download | dabmux-3dab3da3f669e1f2c70fd81c13f67c9c5c77278a.tar.gz dabmux-3dab3da3f669e1f2c70fd81c13f67c9c5c77278a.tar.bz2 dabmux-3dab3da3f669e1f2c70fd81c13f67c9c5c77278a.zip |
Implement FIG0/18 for announcements
Diffstat (limited to 'src/MuxElements.h')
-rw-r--r-- | src/MuxElements.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h index 4d770e9..5eeac51 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -47,6 +47,24 @@ enum class subchannel_type_t { }; +/* Announcement switching flags, + * define in ETSI TS 101 756 Table 15 */ +const char * const annoucement_flags_names[] = { + "Alarm", + "Traffic", + "Travel", + "Warning", + "News", + "Weather", + "Event", + "Special", + "ProgrammeInfo", + "Sports", + "Finance", + "tba1", "tba2", "tba3", "tba4", "tba5" +}; + + struct dabOutput { dabOutput(const char* proto, const char* name) : outputProto(proto), outputName(name), output(NULL) { } @@ -299,6 +317,13 @@ class DabService : public RemoteControllable unsigned char language; bool program; + /* ASu (Announcement support) flags: this 16-bit flag field shall + * specify the type(s) of announcements by which it is possible to + * interrupt the reception of the service. The interpretation of this + * field shall be as defined in TS 101 756, table 14. + */ + uint16_t ASu; + subchannel_type_t getType(boost::shared_ptr<dabEnsemble> ensemble); unsigned char nbComponent(std::vector<DabComponent*>& components); |