aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnetz
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-28 18:18:44 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:01:12 +0100
commitbd7ccc5fa05587606757adbacb6e1bf12f12fd2c (patch)
tree9c7e5262ece40789746d680ae704712b1d17bd3d /src/cnetz
parent71e556e7ffd9e470bde25158b42303eeb2355ff7 (diff)
Add global DC-Filter and remove all individual DC-Filters
Diffstat (limited to 'src/cnetz')
-rw-r--r--src/cnetz/dsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cnetz/dsp.c b/src/cnetz/dsp.c
index d104e13..a927c55 100644
--- a/src/cnetz/dsp.c
+++ b/src/cnetz/dsp.c
@@ -812,6 +812,8 @@ void unshrink_speech(cnetz_t *cnetz, sample_t *speech_buffer, int count)
/* 4. de-emphasis is done by cnetz code, not by common code */
/* de-emphasis is only used when scrambler is off, see FTZ 171 TR 60 Clause 4 */
+ if (cnetz->de_emphasis)
+ dc_filter(&cnetz->estate, speech_buffer, count);
if (cnetz->de_emphasis && !cnetz->scrambler)
de_emphasis(&cnetz->estate, speech_buffer, count);
/* 3. descramble */