From bd7ccc5fa05587606757adbacb6e1bf12f12fd2c Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sat, 28 Jan 2017 18:18:44 +0100 Subject: Add global DC-Filter and remove all individual DC-Filters --- src/common/sender.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/common/sender.c') diff --git a/src/common/sender.c b/src/common/sender.c index f63e021..62eec06 100644 --- a/src/common/sender.c +++ b/src/common/sender.c @@ -281,7 +281,7 @@ cant_recover: display_wave(inst, samples[i], count); sender_receive(inst, samples[i], count); } - /* do pre emphasis towards radio, not wave_write */ + /* do pre emphasis towards radio */ if (inst->pre_emphasis) pre_emphasis(&inst->estate, samples[i], count); /* set paging signal */ @@ -331,9 +331,11 @@ transmit_later: /* rx gain */ if (inst->rx_gain != 1.0) gain_samples(samples[i], count, inst->rx_gain); - /* do de emphasis from radio (then write_wave/wave_read), receive audio, process echo test */ - if (inst->de_emphasis) + /* do filter and de-emphasis from radio receive audio, process echo test */ + if (inst->de_emphasis) { + dc_filter(&inst->estate, samples[i], count); de_emphasis(&inst->estate, samples[i], count); + } if (inst->loopback != 1) { display_wave(inst, samples[i], count); sender_receive(inst, samples[i], count); -- cgit v1.2.3