C-Netz: Use emphasis with 200 uS time constant

This commit is contained in:
Andreas Eversberg
2016-10-23 08:46:05 +02:00
parent 8864db8269
commit 1ea95de120
6 changed files with 17 additions and 12 deletions

View File

@@ -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;