mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:33:40 +00:00
[client] config: add new option audio:micShowIndicator
This will be used to control the display of the microphone recording indicator.
This commit is contained in:
parent
1685249f3a
commit
9c8a8a1b44
@ -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;
|
||||
}
|
||||
|
@ -203,6 +203,7 @@ struct AppParams
|
||||
int audioPeriodSize;
|
||||
int audioBufferLatency;
|
||||
bool micAlwaysAllow;
|
||||
bool micShowIndicator;
|
||||
};
|
||||
|
||||
struct CBRequest
|
||||
|
Loading…
Reference in New Issue
Block a user