Roman DMR End Call Alert

This commit is contained in:
lwvmobile 2022-11-13 23:35:17 -05:00
parent 94dbd1512d
commit b1c40ed6e7
3 changed files with 24 additions and 1 deletions

View File

@ -647,6 +647,9 @@ typedef struct
uint8_t nxdn_alias_block_number;
char nxdn_alias_block_segment[4][4][8];
//Roman DMR End Call Alert Beep
int dmr_end_alert[2]; //dmr TLC end call alert beep has already played once flag
} dsd_state;
/*

View File

@ -709,7 +709,9 @@ initState (dsd_state * state)
state->nxdn_alias_block_number = 0;
memset (state->nxdn_alias_block_segment, 0, sizeof(state->nxdn_alias_block_segment));
//Roman DMR End Call Alert Beep
state->dmr_end_alert[0] = 0;
state->dmr_end_alert[1] = 0;
initialize_p25_heuristics(&state->p25_heuristics);
}

View File

@ -1848,6 +1848,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
{
//fprintf (stderr, "BEEP 0 MS LEFT\n");
beeper (opts, state, 0);
state->dmr_end_alert[0] = 0; //new voice frame, okay to beep at the end of it
}
}
@ -1887,6 +1888,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
{
//fprintf (stderr, "BEEP 0 BS LEFT\n");
beeper (opts, state, 0);
state->dmr_end_alert[0] = 0; //new voice frame, okay to beep at the end of it
}
}
@ -1925,6 +1927,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
{
//fprintf (stderr, "BEEP 1 BS RIGHT\n");
beeper (opts, state, 1);
state->dmr_end_alert[1] = 0; //new voice frame, okay to beep at the end of it
}
}
@ -1965,6 +1968,21 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
}
//Roman DMR End Call Alert Beep
// if (opts->call_alert == 1)
// {
// if (state->dmrburstL == 2 && state->dmr_end_alert[0] == 0) //if TLC and flag not tripped
// {
// beeper (opts, state, 0);
// state->dmr_end_alert[0] = 1; //don't play again until new voice frames
// }
// if (state->dmrburstR == 2 && state->dmr_end_alert[1] == 0) //if TLC and flag not tripped
// {
// beeper (opts, state, 1);
// state->dmr_end_alert[1] = 1; //don't play again until new voice frames
// }
// }
//Start Printing Section
erase();
if (opts->ncurses_compact == 1)