You've already forked godot
							
							
				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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user