[client] audio: avoid prompting when changing record format

If a recording is already in progress, we should not prompt again.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2022-03-19 15:10:39 +11:00
1 parent 8f45290beb
commit 97cef000fd
1 file changed
+3 -1
+3 -1
View File
@@ -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);