From 7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a Mon Sep 17 00:00:00 2001 From: KuntzeM Date: Mon, 11 Feb 2019 16:26:54 +0100 Subject: fixed bug DAB with protection level EEP_A 1-4 --- src/DabMultiplexer.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/DabMultiplexer.cpp') diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index 719e767..e84b58c 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -273,7 +273,7 @@ void DabMultiplexer::prepare_services_components() protection = &(*subchannel)->protection; switch ((*subchannel)->type) { - case subchannel_type_t::Audio: + case subchannel_type_t::DABPlusAudio: { if (protection->form == EEP) { /* According to ETSI TS 102 563 Clause 7.1 FIC signalling: @@ -288,6 +288,15 @@ void DabMultiplexer::prepare_services_components() } } break; + case subchannel_type_t::DABAudio: + { + if (protection->form == EEP) { + /* ASCTy change to 0x0, because DAB mp2 is using + */ + (*component)->type = 0x0; + } + } + break; case subchannel_type_t::DataDmb: case subchannel_type_t::Fidc: case subchannel_type_t::Packet: @@ -720,7 +729,7 @@ void DabMultiplexer::mux_frame(std::vector >& outputs edi_time += chrono::seconds(1); } - /********************************************************************** + /********************************************************************** *********** Section FRPD ***************************************** **********************************************************************/ @@ -748,7 +757,7 @@ void DabMultiplexer::mux_frame(std::vector >& outputs } #if HAVE_OUTPUT_EDI - /********************************************************************** + /********************************************************************** *********** Finalise and send EDI ******************************** **********************************************************************/ @@ -817,7 +826,7 @@ void DabMultiplexer::mux_frame(std::vector >& outputs #endif // HAVE_OUTPUT_EDI #if _DEBUG - /********************************************************************** + /********************************************************************** *********** Output a small message ********************************* **********************************************************************/ if (currentFrame % 100 == 0) { -- cgit v1.2.3