mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[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:
parent
fb5a71c47e
commit
dd6d9c44df
@ -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;
|
||||
}
|
||||
|
@ -202,6 +202,7 @@ struct AppParams
|
||||
|
||||
int audioPeriodSize;
|
||||
int audioBufferLatency;
|
||||
bool micAlwaysAllow;
|
||||
};
|
||||
|
||||
struct CBRequest
|
||||
|
Loading…
Reference in New Issue
Block a user