aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnetz
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-10-23 08:46:05 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-10-23 08:46:05 +0200
commit1ea95de1204d70bb98f117bd5c71bff7b8376c72 (patch)
tree278a3895c5e33c27a84d79f6e2053c844a6ac471 /src/cnetz
parent8864db8269a33778ff5f51aa4b64fa087c9852d5 (diff)
C-Netz: Use emphasis with 200 uS time constant
Diffstat (limited to 'src/cnetz')
-rw-r--r--src/cnetz/cnetz.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cnetz/cnetz.c b/src/cnetz/cnetz.c
index 339362b..49e9430 100644
--- a/src/cnetz/cnetz.c
+++ b/src/cnetz/cnetz.c
@@ -105,6 +105,8 @@
/* uncomment this to do echo debugging (-L) on Speech Channel */
//#define DEBUG_SPK
+#define CUT_OFF_EMPHASIS_CNETZ 796 /* 200 uS time constant */
+
/* Call reference for calls from mobile station to network
This offset of 0x400000000 is required for MNCC interface. */
static int new_callref = 0x40000000;
@@ -286,7 +288,7 @@ int cnetz_create(int kanal, enum cnetz_chan_type chan_type, const char *sounddev
cnetz->pre_emphasis = pre_emphasis;
cnetz->de_emphasis = de_emphasis;
- rc = init_emphasis(&cnetz->estate, samplerate);
+ rc = init_emphasis(&cnetz->estate, samplerate, CUT_OFF_EMPHASIS_CNETZ);
if (rc < 0)
goto error;