[client] audio: switch to use config value audio:micDefault

This commit is contained in:
Quantum 2022-05-22 00:19:46 -04:00 committed by Geoffrey McRae
parent 9b910eced1
commit 7cb6ccd6f5

View File

@ -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);