mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-17 03:07:24 -05:00
WAV: Fix Issues with Per Call;
Fix Per Call Issue introduced with commit re-enabling single static wav file where single channel audio decode types would not write to per call temp wav files and be deleted after event history cycled them;
Fix Issue with YSF where double writes would occur in .wav files;
Fix Issue with M17 where incorrect rate audio would write to static .wav file by converting to stereo output;
Seperate Per Call and Create Method to Allow EDACS Analog Calls to be written to static wav file by downsampling and stereo interleaving audio to proper spec;
Issues were introduced in commit # c7b25c60af
This commit is contained in:
@@ -1423,20 +1423,15 @@ processMbeFrame (dsd_opts * opts, dsd_state * state, char imbe_fr[8][23], char a
|
||||
memcpy (state->f_l, state->audio_out_temp_buf, sizeof(state->f_l)); //P25p1 FDMA 8k/1 channel -f1 switch
|
||||
}
|
||||
|
||||
//static wav file saving, if using old method (fallback if issues arise, but disable all in dsd_audio2.c)
|
||||
// if (opts->static_wav_file == 1 && opts->wav_out_f != NULL)
|
||||
// {
|
||||
// if (state->currentslot == 0)
|
||||
// {
|
||||
// if (state->dmr_encL == 0 || opts->dmr_mute_encL == 0)
|
||||
// writeSynthesizedVoice (opts, state);
|
||||
// }
|
||||
// else if (state->currentslot == 1)
|
||||
// {
|
||||
// if (state->dmr_encR == 0 || opts->dmr_mute_encR == 0)
|
||||
// writeSynthesizedVoiceR (opts, state);
|
||||
// }
|
||||
// }
|
||||
//still need this for any switch that opens a 1 channel output config
|
||||
if (opts->static_wav_file == 0)
|
||||
{
|
||||
//if using anything but DMR Stereo, borrowing state->dmr_encL to signal enc or clear for other types
|
||||
if (opts->wav_out_f != NULL && opts->dmr_stereo == 0 && (opts->unmute_encrypted_p25 == 1 || state->dmr_encL == 0))
|
||||
{
|
||||
writeSynthesizedVoice (opts, state);
|
||||
}
|
||||
}
|
||||
|
||||
//per call wav file writing for slot 1
|
||||
if (opts->dmr_stereo_wav == 1 && opts->dmr_stereo == 1 && state->currentslot == 0)
|
||||
|
||||
Reference in New Issue
Block a user