From 7cb6ccd6f516ebcebfc6772012c9ca67d98c7e17 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 22 May 2022 00:19:46 -0400 Subject: [PATCH] [client] audio: switch to use config value audio:micDefault --- client/src/audio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/audio.c b/client/src/audio.c index ee1bf395..61190b1d 100644 --- a/client/src/audio.c +++ b/client/src/audio.c @@ -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);