diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2017-05-24 14:00:08 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2017-05-24 14:00:08 +0200 |
commit | fc3b3e07be34b1daacd968a9a9e4be5b6db7818e (patch) | |
tree | d1d25228acd93a1b3880b2c7b9b9c7aaea48eb59 | |
parent | 56024b384b01a287ce00c43463590a28c3ca8c32 (diff) |
Finetuning LOSS (noise) detection
The algorithm is still bad, but works in most cases
-rw-r--r-- | src/bnetz/bnetz.c | 3 | ||||
-rw-r--r-- | src/common/loss.c | 2 |
2 files changed, 1 insertions, 4 deletions
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) |