You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[macOS] Fix microphone issue
This commit is contained in:
@@ -394,6 +394,11 @@ Error AudioDriverCoreAudio::init_input_device() {
|
|||||||
UInt32 flag = 1;
|
UInt32 flag = 1;
|
||||||
result = AudioUnitSetProperty(input_unit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input, kInputBus, &flag, sizeof(flag));
|
result = AudioUnitSetProperty(input_unit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input, kInputBus, &flag, sizeof(flag));
|
||||||
ERR_FAIL_COND_V(result != noErr, FAILED);
|
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;
|
UInt32 size;
|
||||||
#ifdef MACOS_ENABLED
|
#ifdef MACOS_ENABLED
|
||||||
|
|||||||
Reference in New Issue
Block a user