summaryrefslogtreecommitdiffstats
path: root/src/MuxElements.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-05 11:15:58 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-05 11:15:58 +0200
commitc0788a90a0d6e047488980a2ad5bb4f9cf108682 (patch)
tree284b7c184b15e71b8839c1c259d8f888f3c2a5c1 /src/MuxElements.h
parent80da341c45f7b1b75a2227f931585633a048ce4e (diff)
downloaddabmux-c0788a90a0d6e047488980a2ad5bb4f9cf108682.tar.gz
dabmux-c0788a90a0d6e047488980a2ad5bb4f9cf108682.tar.bz2
dabmux-c0788a90a0d6e047488980a2ad5bb4f9cf108682.zip
Take BufferManagement setting into account
Diffstat (limited to 'src/MuxElements.h')
-rw-r--r--src/MuxElements.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h
index ec79fdd..f691093 100644
--- a/src/MuxElements.h
+++ b/src/MuxElements.h
@@ -338,6 +338,14 @@ struct dabProtection {
};
};
+enum class BufferManagement {
+ // Use a buffer in the input that doesn't consider timestamps
+ Prebuffering,
+
+ // Buffer incoming data until a given timestamp is reached
+ Timestamped,
+};
+
class DabSubchannel
{
public:
@@ -359,6 +367,7 @@ public:
std::string uid;
std::string inputUri;
+ BufferManagement bufferManagement = BufferManagement::Prebuffering;
std::shared_ptr<Inputs::InputBase> input;
unsigned char id = 0;
subchannel_type_t type = subchannel_type_t::DABAudio;