Disable Float Mono Audio Decimation;

This commit is contained in:
lwvmobile
2023-08-04 23:14:00 -04:00
parent 578117d82a
commit 8b844aa6e3

View File

@@ -474,11 +474,12 @@ void playSynthesizedVoiceFM (dsd_opts * opts, dsd_state * state)
agf(opts, state, state->f_l,0); agf(opts, state, state->f_l,0);
//mono needs an additional decimation //mono may need an additional decimation
for (int i = 0; i < 160; i++) // for (int i = 0; i < 160; i++)
state->f_l[i] *= 0.5f; // state->f_l[i] *= 0.5f;
if (opts->slot1_on == 0) goto vfm_end; if (opts->slot1_on == 0)
goto vfm_end;
if (opts->audio_out_type == 0) if (opts->audio_out_type == 0)
pa_simple_write(opts->pulse_digi_dev_out, state->f_l, 160*4, NULL); pa_simple_write(opts->pulse_digi_dev_out, state->f_l, 160*4, NULL);
@@ -497,7 +498,8 @@ void playSynthesizedVoiceFM (dsd_opts * opts, dsd_state * state)
state->audio_out_idx2 = 0; state->audio_out_idx2 = 0;
} }
memset (state->audio_out_temp_buf, 0, sizeof(state->audio_out_temp_buf)); memset (state->f_l, 0.0f, sizeof(state->f_l));
memset (state->audio_out_temp_buf, 0.0f, sizeof(state->audio_out_temp_buf));
} }