From 9c8a8a1b44a88a75f57bad91554414d7ea0d43ab Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 19 Mar 2022 00:11:57 -0400 Subject: [PATCH] [client] config: add new option audio:micShowIndicator This will be used to control the display of the microphone recording indicator. --- client/src/config.c | 8 ++++++++ client/src/main.h | 1 + 2 files changed, 9 insertions(+) diff --git a/client/src/config.c b/client/src/config.c index c0d1215d..cd5871dd 100644 --- a/client/src/config.c +++ b/client/src/config.c @@ -487,6 +487,13 @@ static struct Option options[] = .type = OPTION_TYPE_BOOL, .value.x_bool = false }, + { + .module = "audio", + .name = "micShowIndicator", + .description = "Display microphone usage indicator", + .type = OPTION_TYPE_BOOL, + .value.x_bool = true + }, {0} }; @@ -678,6 +685,7 @@ bool config_load(int argc, char * argv[]) g_params.audioPeriodSize = option_get_int("audio", "periodSize"); g_params.audioBufferLatency = option_get_int("audio", "bufferLatency"); g_params.micAlwaysAllow = option_get_bool("audio", "micAlwaysAllow"); + g_params.micShowIndicator = option_get_bool("audio", "micShowIndicator"); return true; } diff --git a/client/src/main.h b/client/src/main.h index a432f5a6..b2ba967a 100644 --- a/client/src/main.h +++ b/client/src/main.h @@ -203,6 +203,7 @@ struct AppParams int audioPeriodSize; int audioBufferLatency; bool micAlwaysAllow; + bool micShowIndicator; }; struct CBRequest