mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-20 12:45:40 -05:00
Roman DMR End Call Alert
This commit is contained in:
@@ -647,6 +647,9 @@ typedef struct
|
|||||||
uint8_t nxdn_alias_block_number;
|
uint8_t nxdn_alias_block_number;
|
||||||
char nxdn_alias_block_segment[4][4][8];
|
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;
|
} dsd_state;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -709,7 +709,9 @@ initState (dsd_state * state)
|
|||||||
state->nxdn_alias_block_number = 0;
|
state->nxdn_alias_block_number = 0;
|
||||||
memset (state->nxdn_alias_block_segment, 0, sizeof(state->nxdn_alias_block_segment));
|
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);
|
initialize_p25_heuristics(&state->p25_heuristics);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1848,6 +1848,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
|||||||
{
|
{
|
||||||
//fprintf (stderr, "BEEP 0 MS LEFT\n");
|
//fprintf (stderr, "BEEP 0 MS LEFT\n");
|
||||||
beeper (opts, state, 0);
|
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");
|
//fprintf (stderr, "BEEP 0 BS LEFT\n");
|
||||||
beeper (opts, state, 0);
|
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");
|
//fprintf (stderr, "BEEP 1 BS RIGHT\n");
|
||||||
beeper (opts, state, 1);
|
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
|
//Start Printing Section
|
||||||
erase();
|
erase();
|
||||||
if (opts->ncurses_compact == 1)
|
if (opts->ncurses_compact == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user