mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-17 03:07:24 -05:00
Test HPF On Digital Voice Out;
This commit is contained in:
@@ -308,6 +308,8 @@ 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]);
|
||||
state->audio_out_buf_p++;
|
||||
state->audio_out_float_buf_p++;
|
||||
}
|
||||
@@ -328,6 +330,8 @@ 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]);
|
||||
//debug
|
||||
// fprintf (stderr, " %d", state->s_l[n]);
|
||||
state->audio_out_buf_p++;
|
||||
@@ -455,6 +459,8 @@ 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]);
|
||||
state->audio_out_buf_pR++;
|
||||
state->audio_out_float_buf_pR++;
|
||||
}
|
||||
@@ -475,6 +481,8 @@ 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]);
|
||||
state->audio_out_buf_pR++;
|
||||
state->audio_out_temp_buf_pR++;
|
||||
state->audio_out_idxR++;
|
||||
|
||||
Reference in New Issue
Block a user