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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user