[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:
Quantum 2022-03-19 00:11:57 -04:00 committed by Geoffrey McRae
parent 1685249f3a
commit 9c8a8a1b44
2 changed files with 9 additions and 0 deletions

View File

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

View File

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