1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-28 09:26:46 +02:00

Fix issue with audio VAD threshold

The default VAD was always being set to 0. We now use the
value provided by the config file if defined
This commit is contained in:
jfreegman
2021-12-05 16:36:13 -05:00
parent 7b734f3996
commit 8aa57b0539
5 changed files with 16 additions and 21 deletions

View File

@ -1034,7 +1034,7 @@ static void init_infobox(ToxWindow *self)
ctx->infobox.win = newwin(INFOBOX_HEIGHT, INFOBOX_WIDTH + 1, 1, x2 - INFOBOX_WIDTH);
ctx->infobox.starttime = get_unix_time();
ctx->infobox.vad_lvl = 0.0f;
ctx->infobox.vad_lvl = user_settings->VAD_threshold;
ctx->infobox.active = true;
strcpy(ctx->infobox.timestr, "00");
}