[client] main: move micDefaultState into g_state
This commit is contained in:
1 parent
9dee9ed7bb
commit
ae38db4915
3 files changed
+6
-2
No files matched your search
+2
-2
@@ -814,9 +814,9 @@ void audio_recordStart(int channels, int sampleRate, PSAudioFormat format)
|
||||
|
||||
if (audio.record.started)
|
||||
realRecordStart(channels, sampleRate, format);
|
||||
else if (g_params.micDefaultState == MIC_DEFAULT_DENY)
|
||||
else if (g_state.micDefaultState == MIC_DEFAULT_DENY)
|
||||
DEBUG_INFO("Microphone access denied by default");
|
||||
else if (g_params.micDefaultState == MIC_DEFAULT_ALLOW)
|
||||
else if (g_state.micDefaultState == MIC_DEFAULT_ALLOW)
|
||||
{
|
||||
DEBUG_INFO("Microphone access granted by default");
|
||||
realRecordStart(channels, sampleRate, format);
|
||||
|
||||
Reference in new issue
Block a user