Tweak Toggle Voice Synthesis for FDMA Sources;

This commit is contained in:
lwvmobile
2023-07-28 20:53:56 -04:00
parent 23f6c75257
commit 3bb9994589
5 changed files with 32 additions and 8 deletions

View File

@@ -409,6 +409,8 @@ void playSynthesizedVoiceFS (dsd_opts * opts, dsd_state * state)
//TODO: add option to bypass enc with a toggle as well
if (opts->slot1_on == 0) encL = 1;
//run autogain on the f_ buffers
agf (opts, state, state->f_l,0);
@@ -477,12 +479,16 @@ void playSynthesizedVoiceFM (dsd_opts * opts, dsd_state * state)
agf(opts, state, state->f_l,0);
if (opts->slot1_on == 0) goto vfm_end;
if (opts->audio_out_type == 0)
pa_simple_write(opts->pulse_digi_dev_out, state->f_l, 160*4, NULL);
if (opts->audio_out_type == 1 || opts->audio_out_type == 5)
write(opts->audio_out_fd, state->f_l, 160*4);
vfm_end:
if (state->audio_out_idx2 >= 800000)
{
state->audio_out_float_buf_p = state->audio_out_float_buf + 100;
@@ -512,6 +518,8 @@ void playSynthesizedVoiceSS (dsd_opts * opts, dsd_state * state)
//TODO: add option to bypass enc with a toggle as well
if (opts->slot1_on == 0) encL = 1;
//interleave left and right channels from the short storage area
for (i = 0; i < 160; i++)
{