User Toggles and Displays for Filters;

This commit is contained in:
lwvmobile
2024-03-22 18:10:15 -04:00
parent b6fc17c506
commit ff58d3a6fa
7 changed files with 144 additions and 33 deletions

View File

@@ -308,8 +308,9 @@ processAudio (dsd_opts * opts, dsd_state * state)
*state->audio_out_buf_p = (short) *state->audio_out_float_buf_p;
//tap the pointer here and store the short upsample buffer samples
state->s_lu[n] = (short) *state->audio_out_float_buf_p;
//hpf test
// state->s_lu[n] = HPFilter_Update(&state->HRCFilterL, state->s_lu[n]);
//hpf
if (opts->use_hpf_d == 1)
state->s_lu[n] = HPFilter_Update(&state->HRCFilterL, state->s_lu[n]);
state->audio_out_buf_p++;
state->audio_out_float_buf_p++;
}
@@ -330,8 +331,9 @@ processAudio (dsd_opts * opts, dsd_state * state)
*state->audio_out_buf_p = (short) *state->audio_out_temp_buf_p;
//tap the pointer here and store the short buffer samples
state->s_l[n] = (short) *state->audio_out_temp_buf_p;
//hpf test
// state->s_l[n] = HPFilter_Update(&state->HRCFilterL, state->s_l[n]);
//hpf
if (opts->use_hpf_d == 1)
state->s_l[n] = HPFilter_Update(&state->HRCFilterL, state->s_l[n]);
//debug
// fprintf (stderr, " %d", state->s_l[n]);
state->audio_out_buf_p++;
@@ -459,8 +461,9 @@ processAudioR (dsd_opts * opts, dsd_state * state)
*state->audio_out_buf_pR = (short) *state->audio_out_float_buf_pR;
//tap the pointer here and store the short upsample buffer samples
state->s_ru[n] = (short) *state->audio_out_float_buf_pR;
//hpf test
// state->s_ru[n] = HPFilter_Update(&state->HRCFilterR, state->s_ru[n]);
//hpf
if (opts->use_hpf_d == 1)
state->s_ru[n] = HPFilter_Update(&state->HRCFilterR, state->s_ru[n]);
state->audio_out_buf_pR++;
state->audio_out_float_buf_pR++;
}
@@ -481,8 +484,9 @@ processAudioR (dsd_opts * opts, dsd_state * state)
*state->audio_out_buf_pR = (short) *state->audio_out_temp_buf_pR;
//tap the pointer here and store the short buffer samples
state->s_r[n] = (short) *state->audio_out_temp_buf_pR;
//hpf test
// state->s_r[n] = HPFilter_Update(&state->HRCFilterR, state->s_r[n]);
//hpf
if (opts->use_hpf_d == 1)
state->s_r[n] = HPFilter_Update(&state->HRCFilterR, state->s_r[n]);
state->audio_out_buf_pR++;
state->audio_out_temp_buf_pR++;
state->audio_out_idxR++;