This commit is contained in:
Anthony Minessale 2017-01-19 10:51:24 -06:00
parent 16c0bc115e
commit 1918f29671
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ SWITCH_DECLARE(switch_status_t) switch_agc_feed(switch_agc_t *agc, int16_t *data
agc->score_over = 0; agc->score_over = 0;
} }
if (agc->score_avg < agc->energy_avg - agc->margin && agc->score_avg > agc->low_energy_point) { if (agc->score_avg < agc->energy_avg - agc->margin && (agc->vol < 0 || agc->score_avg > agc->low_energy_point)) {
agc->score_under++; agc->score_under++;
} else { } else {
agc->score_under = 0; agc->score_under = 0;