DMR: Add 16-bit Anytone BP Support; #303

Reset static_ks_counter as various places in code;

Remove the static_ks_counter reset from KWD SCR link control and tweak SO bits;

Fix Forced KS application to work in both slots;

Allow Static Wav File or Per Call Wav File in SDRTrunk MBE format playback; #298

Same as above for .amb, .dmb, and .imb format playback;

Update Usage and Docs;
This commit is contained in:
lwvmobile
2025-08-20 23:12:57 -04:00
parent 6f171620dc
commit 24c1dd97df
9 changed files with 184 additions and 76 deletions

View File

@@ -1008,9 +1008,14 @@ uint16_t ambe2_str_to_decode(dsd_opts * opts, dsd_state * state, char * ambe_str
if (opts->floating_point == 0)
processAudio(opts, state);
if (opts->wav_out_f != NULL)
//per call wav files
if (opts->wav_out_f != NULL && opts->dmr_stereo_wav == 1)
writeSynthesizedVoice (opts, state);
//NOTE: Static Wav file is handled inside of playSynthesizedVoiceMS,
//but if using -o null to mute audio, then the static file will not contain audio
//TODO: Fix above to allow audio in wav even if not put out to speakers?
if (opts->audio_out == 1 && opts->floating_point == 0)
playSynthesizedVoiceMS (opts, state);
@@ -1114,9 +1119,14 @@ uint16_t imbe_str_to_decode(dsd_opts * opts, dsd_state * state, char * imbe_str,
if (opts->floating_point == 0)
processAudio(opts, state);
if (opts->wav_out_f != NULL)
//per call wav files
if (opts->wav_out_f != NULL && opts->dmr_stereo_wav == 1)
writeSynthesizedVoice (opts, state);
//NOTE: Static Wav file is handled inside of playSynthesizedVoiceMS,
//but if using -o null to mute audio, then the static file will not contain audio
//TODO: Fix above to allow audio in wav even if not put out to speakers?
if (opts->audio_out == 1 && opts->floating_point == 0)
playSynthesizedVoiceMS (opts, state);