mirror of https://github.com/lwvmobile/dsd-fme.git
Enable HPF_D on M17 Voice;
This commit is contained in:
parent
9bbe4de7fd
commit
1f37837664
11
src/m17.c
11
src/m17.c
|
|
@ -359,6 +359,10 @@ void M17processCodec2_1600(dsd_opts * opts, dsd_state * state, uint8_t * payload
|
|||
|
||||
codec2_decode(state->codec2_1600, samp1, voice1);
|
||||
|
||||
//hpf_d on codec2 sounds better than not on those .rrc samples
|
||||
if (opts->use_hpf_d == 1)
|
||||
hpf_dL(state, samp1, nsam);
|
||||
|
||||
if (opts->audio_out_type == 0 && state->m17_enc == 0) //Pulse Audio
|
||||
{
|
||||
pa_simple_write(opts->pulse_digi_dev_out, samp1, nsam*2, NULL);
|
||||
|
|
@ -459,6 +463,13 @@ void M17processCodec2_3200(dsd_opts * opts, dsd_state * state, uint8_t * payload
|
|||
codec2_decode(state->codec2_3200, samp1, voice1);
|
||||
codec2_decode(state->codec2_3200, samp2, voice2);
|
||||
|
||||
//hpf_d on codec2 sounds better than not on those .rrc samples
|
||||
if (opts->use_hpf_d == 1)
|
||||
{
|
||||
hpf_dL(state, samp1, nsam);
|
||||
hpf_dL(state, samp2, nsam);
|
||||
}
|
||||
|
||||
if (opts->audio_out_type == 0 && state->m17_enc == 0) //Pulse Audio
|
||||
{
|
||||
pa_simple_write(opts->pulse_digi_dev_out, samp1, nsam*2, NULL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue