提交 4c19a60e 编写于 作者: J jp9000

Fix device disconnect detection for CoreAudio

These address structures are very confusing and I wish apple designed
better system APIs.
上级 61c9ff2a
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册