1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-03 11:50:27 +00:00

[macOS] Fix microphone issue

This commit is contained in:
Adam Scott
2025-10-15 15:37:48 -04:00
parent 36b92128b1
commit b4f9060db6

View File

@@ -394,6 +394,11 @@ Error AudioDriverCoreAudio::init_input_device() {
UInt32 flag = 1;
result = AudioUnitSetProperty(input_unit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input, kInputBus, &flag, sizeof(flag));
ERR_FAIL_COND_V(result != noErr, FAILED);
#ifdef MACOS_ENABLED
flag = 0;
result = AudioUnitSetProperty(input_unit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Output, kOutputBus, &flag, sizeof(flag));
ERR_FAIL_COND_V(result != noErr, FAILED);
#endif
UInt32 size;
#ifdef MACOS_ENABLED