From fc3b3e07be34b1daacd968a9a9e4be5b6db7818e Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 24 May 2017 14:00:08 +0200 Subject: Finetuning LOSS (noise) detection The algorithm is still bad, but works in most cases --- src/bnetz/bnetz.c | 3 --- src/common/loss.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/bnetz/bnetz.c b/src/bnetz/bnetz.c index 94e704e..a741e32 100644 --- a/src/bnetz/bnetz.c +++ b/src/bnetz/bnetz.c @@ -45,9 +45,6 @@ static int new_callref = 0x40000000; #define DIALING_TO 3.8 /* timeout after channel allocation "Kanalbelegung" */ #define DIALING_TO2 0.5 /* timeout while receiving digits */ -/* radio loss condition */ -#define LOSS_OF_SIGNAL 12.5 /* duration of carrier loss until release */ - /* mobile terminating call */ #define ALERTING_TO 60 /* timeout after 60 seconds alerting the MS */ #define PAGING_TO 2.1 /* 700..2100 ms timeout after paging "Selektivruf" */ diff --git a/src/common/loss.c b/src/common/loss.c index d8ce2a5..0e37f95 100644 --- a/src/common/loss.c +++ b/src/common/loss.c @@ -51,7 +51,7 @@ void audio_reset_loss(loss_t *loss) loss->level_count = 0; } -#define LOSS_MAX_DIFF 1.1 /* 10 % difference */ +#define LOSS_MAX_DIFF 1.2 /* 20 % difference */ /* call this for every interval */ int audio_detect_loss(loss_t *loss, double level) -- cgit v1.2.3