summaryrefslogtreecommitdiffstats
path: root/src/MuxElements.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-21 18:58:42 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-21 18:58:42 +0200
commite6544091a297623b62964a9028579351a664bf68 (patch)
tree4659b5f069cc55f60a1de93f406c73235e13818f /src/MuxElements.h
parentd60b36afc30460f070f25dd8ee8d52b556ea8790 (diff)
downloaddabmux-e6544091a297623b62964a9028579351a664bf68.tar.gz
dabmux-e6544091a297623b62964a9028579351a664bf68.tar.bz2
dabmux-e6544091a297623b62964a9028579351a664bf68.zip
Replace subchannel id by enum
Diffstat (limited to 'src/MuxElements.h')
-rw-r--r--src/MuxElements.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h
index 9895956..0f9fa18 100644
--- a/src/MuxElements.h
+++ b/src/MuxElements.h
@@ -144,18 +144,19 @@ struct dabProtection {
};
};
+enum dab_subchannel_type_t {
+ Audio = 0,
+ DataDmb = 1,
+ Fidc = 2,
+ Packet = 3
+};
struct dabSubchannel {
const char* inputProto;
const char* inputName;
DabInputBase* input;
unsigned char id;
- /* The type is:
- * 0 for mpeg, dabplus
- * 1 for data, dmb
- * 3 for packet
- */
- unsigned char type;
+ dab_subchannel_type_t type;
uint16_t startAddress;
uint16_t bitrate;
dabProtection protection;