diff options
author | KuntzeM <github@kuntze.email> | 2019-02-11 16:26:54 +0100 |
---|---|---|
committer | KuntzeM <github@kuntze.email> | 2019-02-11 16:26:54 +0100 |
commit | 7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a (patch) | |
tree | 40cc6ec46894fe37b754f81c31783c0c08bde2b2 /src/DabMultiplexer.cpp | |
parent | a8cc30be9589280d9bde3ddaf676610c9b12af2a (diff) | |
download | dabmux-7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a.tar.gz dabmux-7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a.tar.bz2 dabmux-7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a.zip |
fixed bug DAB with protection level EEP_A 1-4
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r-- | src/DabMultiplexer.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
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<std::shared_ptr<DabOutput> >& outputs edi_time += chrono::seconds(1); } - /********************************************************************** + /********************************************************************** *********** Section FRPD ***************************************** **********************************************************************/ @@ -748,7 +757,7 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs } #if HAVE_OUTPUT_EDI - /********************************************************************** + /********************************************************************** *********** Finalise and send EDI ******************************** **********************************************************************/ @@ -817,7 +826,7 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs #endif // HAVE_OUTPUT_EDI #if _DEBUG - /********************************************************************** + /********************************************************************** *********** Output a small message ********************************* **********************************************************************/ if (currentFrame % 100 == 0) { |