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:
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user