From 2b014e2f00df81eefe977b901ab601ea11ccb895 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 23 Dec 2016 22:27:03 +0100 Subject: Add EDI fragment interleaver --- src/DabMultiplexer.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/DabMultiplexer.h') diff --git a/src/DabMultiplexer.h b/src/DabMultiplexer.h index e2a94f5..b3e432e 100644 --- a/src/DabMultiplexer.h +++ b/src/DabMultiplexer.h @@ -23,8 +23,7 @@ along with ODR-DabMux. If not, see . */ -#ifndef __DAB_MULTIPLEXER_H__ -#define __DAB_MULTIPLEXER_H__ +#pragma once #ifdef HAVE_CONFIG_H # include "config.h" @@ -35,6 +34,7 @@ #include "dabOutput/edi/TagPacket.h" #include "dabOutput/edi/AFPacket.h" #include "dabOutput/edi/PFT.h" +#include "dabOutput/edi/Interleaver.h" #include "fig/FIGCarousel.h" #include "crc.h" #include "utils.h" @@ -102,6 +102,9 @@ class DabMultiplexer : public RemoteControllable { // The AF Packet will be protected with reed-solomon and split in fragments edi::PFT edi_pft; + + // To mitigate for burst packet loss, PFT fragments can be sent out-of-order + edi::Interleaver edi_interleaver; #endif // HAVE_OUTPUT_EDI /* New FIG Carousel */ @@ -130,5 +133,3 @@ class DabMultiplexer : public RemoteControllable { #define DEFAULT_SERVICE_ID 50 #define DEFAULT_PACKET_ADDRESS 0 -#endif - -- cgit v1.2.3