P25 Fix Some Logic Regarding Symbol Rate Switch;

This commit is contained in:
lwvmobile
2023-08-04 17:07:18 -04:00
parent f9b74cf7e2
commit d6181e2dcd
3 changed files with 17 additions and 3 deletions

View File

@@ -3827,6 +3827,13 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
state->last_cc_sync_time = time(NULL);
//if P25p2 VCH and going back to P25p1 CC, flip symbolrate
if (state->p25_cc_is_tdma == 0)
{
state->samplesPerSymbol = 10;
state->symbolCenter = 4;
}
}
if (state->lasttgR != 0 && opts->frame_provoice != 1 && c == 64) //SHIFT+'2' key (@ at sign), lockout slot 2 tdma tgR from tuning/playback during session
@@ -3882,6 +3889,13 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
state->last_cc_sync_time = time(NULL);
//if P25p2 VCH and going back to P25p1 CC, flip symbolrate
if (state->p25_cc_is_tdma == 0)
{
state->samplesPerSymbol = 10;
state->symbolCenter = 4;
}
}
// if (c == 48) //'0' key, toggle upsampled audio smoothing