Finetuning LOSS (noise) detection

The algorithm is still bad, but works in most cases
This commit is contained in:
Andreas Eversberg
2017-05-24 14:00:08 +02:00
parent 56024b384b
commit fc3b3e07be
2 changed files with 1 additions and 4 deletions

View File

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