Просмотр исходного кода

Fix device disconnect detection for CoreAudio

These address structures are very confusing and I wish apple designed
better system APIs.
jp9000 11 лет назад
Родитель
Сommit
4c19a60e16
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      plugins/mac-capture/mac-audio.c

+ 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)