瀏覽代碼

libobs: Fix Monitoring devices showing input devices

This bug fix is to show output devices in the Advanced Audio
Settings configuration, where currently on macOS it shows erroneously
input devices.
Daniel Lopez 7 年之前
父節點
當前提交
2eb5a2288a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/audio-monitoring/osx/coreaudio-enum-devices.c

+ 1 - 1
libobs/audio-monitoring/osx/coreaudio-enum-devices.c

@@ -32,7 +32,7 @@ static bool obs_enum_audio_monitoring_device(obs_enum_audio_device_cb cb,
 	/* check to see if it's a mac input device */
 	/* check to see if it's a mac input device */
 	if (!allow_inputs) {
 	if (!allow_inputs) {
 		AudioObjectGetPropertyDataSize(id, &addr, 0, NULL, &size);
 		AudioObjectGetPropertyDataSize(id, &addr, 0, NULL, &size);
-		if (!size)
+		if (size)
 			return true;
 			return true;
 	}
 	}