diff --git a/client/src/config.c b/client/src/config.c index e4c8e2aa..c0d1215d 100644 --- a/client/src/config.c +++ b/client/src/config.c @@ -480,6 +480,13 @@ static struct Option options[] = .type = OPTION_TYPE_INT, .value.x_int = 13 }, + { + .module = "audio", + .name = "micAlwaysAllow", + .description = "Always allow guest attempts to access the microphone", + .type = OPTION_TYPE_BOOL, + .value.x_bool = false + }, {0} }; @@ -670,6 +677,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"); return true; } diff --git a/client/src/main.h b/client/src/main.h index 2bc8f219..a432f5a6 100644 --- a/client/src/main.h +++ b/client/src/main.h @@ -202,6 +202,7 @@ struct AppParams int audioPeriodSize; int audioBufferLatency; + bool micAlwaysAllow; }; struct CBRequest