[client] audio: switch to use config value audio:micDefault

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2022-05-27 11:22:12 +10:00
1 parent 9b910eced1
commit 7cb6ccd6f5
1 file changed
+3 -1
+3 -1
View File
@@ -808,7 +808,9 @@ void audio_recordStart(int channels, int sampleRate, PSAudioFormat format)
if (audio.record.started)
realRecordStart(channels, sampleRate, format);
else if (g_params.micAlwaysAllow)
else if (g_params.micDefaultState == MIC_DEFAULT_DENY)
DEBUG_INFO("Microphone access denied by default");
else if (g_params.micDefaultState == MIC_DEFAULT_ALLOW)
{
DEBUG_INFO("Microphone access granted by default");
realRecordStart(channels, sampleRate, format);