[client] config: add new audio:micAlwaysAllow option

This will be used to always grant access to microphones instead of
prompting every time.
This commit is contained in:
Quantum 2022-03-18 01:56:31 -04:00 committed by Geoffrey McRae
parent fb5a71c47e
commit dd6d9c44df
2 changed files with 9 additions and 0 deletions

View File

@ -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;
}

View File

@ -202,6 +202,7 @@ struct AppParams
int audioPeriodSize;
int audioBufferLatency;
bool micAlwaysAllow;
};
struct CBRequest