Request mic access only when is needed
This commit is contained in:
parent
199c294d4c
commit
7d387dc63f
4 changed files with 15 additions and 1 deletions
|
|
@ -159,7 +159,10 @@ Error AudioDriverCoreAudio::init() {
|
|||
result = AudioUnitInitialize(audio_unit);
|
||||
ERR_FAIL_COND_V(result != noErr, FAILED);
|
||||
|
||||
return capture_init();
|
||||
if (GLOBAL_GET("audio/enable_audio_input")) {
|
||||
return capture_init();
|
||||
}
|
||||
return OK;
|
||||
}
|
||||
|
||||
OSStatus AudioDriverCoreAudio::output_callback(void *inRefCon,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue