[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:
1 parent
8f45290beb
commit
97cef000fd
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user