From 97cef000fdfeff44a5548f6f70ebd89db1a9a253 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 19 Mar 2022 00:04:09 -0400 Subject: [PATCH] [client] audio: avoid prompting when changing record format If a recording is already in progress, we should not prompt again. --- 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 43e14b03..b51da149 100644 --- a/client/src/audio.c +++ b/client/src/audio.c @@ -803,7 +803,9 @@ void audio_recordStart(int channels, int sampleRate, PSAudioFormat format) lastChannels = channels; lastSampleRate = sampleRate; - if (g_params.micAlwaysAllow) + if (audio.record.started) + realRecordStart(channels, sampleRate, format); + else if (g_params.micAlwaysAllow) { DEBUG_INFO("Microphone access granted by default"); realRecordStart(channels, sampleRate, format);