From 001d28aaf803a0126d9cca498b04375333872578 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Tue, 10 Oct 2023 09:12:28 -0400 Subject: [PATCH] P25p2 -- Disable Slot Synthesis when MAC_SIGNAL; --- src/p25p2_vpdu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/p25p2_vpdu.c b/src/p25p2_vpdu.c index 25338d9..dff1265 100644 --- a/src/p25p2_vpdu.c +++ b/src/p25p2_vpdu.c @@ -74,6 +74,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon // if (type == 0 && slot == 1) state->dmrburstR = 30; // if (type == 1 && slot == 1) state->dmrburstR = 30; + //Temp Fix: Disable Slot Playback when MAC_SIGNAL present (good CRC), + //during trunking, will re-enable when call grant is received, prevent lagging: + if (opts->p25_trunk == 1 && opts->p25_is_tuned == 0) opts->slot1_on = 0; + if (opts->p25_trunk == 1 && opts->p25_is_tuned == 0) opts->slot2_on = 0; + + //TODO: Iron out issues with audio playing in every non SACCH slot when no voice present + //without it stuttering during actual voice + }