diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-23 22:27:03 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-23 22:27:03 +0100 |
commit | 2b014e2f00df81eefe977b901ab601ea11ccb895 (patch) | |
tree | a5c6fe371838ff3e153c99c6a87554b55b2284d1 /src/dabOutput/dabOutput.h | |
parent | 1d2c8bf95e8d9c7c6f282f266b149bc82f1c8371 (diff) | |
download | dabmux-2b014e2f00df81eefe977b901ab601ea11ccb895.tar.gz dabmux-2b014e2f00df81eefe977b901ab601ea11ccb895.tar.bz2 dabmux-2b014e2f00df81eefe977b901ab601ea11ccb895.zip |
Add EDI fragment interleaver
Diffstat (limited to 'src/dabOutput/dabOutput.h')
-rw-r--r-- | src/dabOutput/dabOutput.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dabOutput/dabOutput.h b/src/dabOutput/dabOutput.h index a023da9..11b78e6 100644 --- a/src/dabOutput/dabOutput.h +++ b/src/dabOutput/dabOutput.h @@ -69,8 +69,10 @@ struct edi_configuration_t { unsigned int tagpacket_alignment; std::vector<edi_destination_t> destinations; unsigned int dest_port; // common destination port, because it's encoded in the transport layer + unsigned int latency_frames; // if nonzero, enable interleaver with a latency of latency_frames * 24ms - bool enabled() { return destinations.size() > 0; } + bool enabled() const { return destinations.size() > 0; } + bool interleaver_enabled() const { return latency_frames > 0; } }; |