Fix device disconnect detection for CoreAudio
These address structures are very confusing and I wish apple designed better system APIs.
This commit is contained in:
parent
61c9ff2a0a
commit
4c19a60e16
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user