M17 - Enable Vox Mode for Voice Stream (testing);

This commit is contained in:
lwvmobile
2024-03-15 17:43:53 -04:00
parent 5573244583
commit 7101c3588a
3 changed files with 52 additions and 2 deletions

View File

@@ -1191,6 +1191,7 @@ initState (dsd_state * state)
state->m17_can = 0; //can value that was decoded from signal
state->m17_can_en = -1; //can value supplied to the encoding side
state->m17_rate = 48000; //sampling rate for audio input
state->m17_vox = 0; //vox mode enabled on M17 encoder
memset(state->m17_dst_csd, 0, sizeof(state->m17_dst_csd));
memset(state->m17_src_csd, 0, sizeof(state->m17_src_csd));
sprintf (state->m17_dst_str, "%s", "");
@@ -3066,6 +3067,10 @@ main (int argc, char **argv)
if (curr != NULL)
state.m17_rate = atoi(curr);
curr = strtok(NULL, ":"); //m17 vox enable
if (curr != NULL)
state.m17_vox = atoi(curr);
M17END: ; //do nothing
//check to make sure can value is no greater than 15 (4 bit value)