1
0
Эх сурвалжийг харах

Fix device disconnect detection for CoreAudio

These address structures are very confusing and I wish apple designed
better system APIs.
jp9000 11 жил өмнө
parent
commit
4c19a60e16

+ 3 - 3
plugins/mac-capture/mac-audio.c

@@ -346,9 +346,9 @@ static OSStatus disconnection_callback(
 }
 
 static const AudioObjectPropertyAddress alive_addr = {
-	kAudioHardwarePropertyDevices,
-	kAudioDevicePropertyScopeInput,
-	kAudioDevicePropertyDeviceIsAlive
+	kAudioDevicePropertyDeviceIsAlive,
+	kAudioObjectPropertyScopeGlobal,
+	kAudioObjectPropertyElementMaster
 };
 
 static bool coreaudio_init_hooks(struct coreaudio_data *ca)