mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[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:
parent
8f45290beb
commit
97cef000fd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user