Coreaudio: fix duplicates in device list
This is an edge-case only, some devices may dis and reconnect with different IDs.
This commit is contained in:
parent
bdb5aec1cc
commit
df0571892f
@ -595,6 +595,9 @@ CoreAudioPCM::discover()
|
|||||||
free(_device_outs); _device_outs = 0;
|
free(_device_outs); _device_outs = 0;
|
||||||
}
|
}
|
||||||
_devices.clear();
|
_devices.clear();
|
||||||
|
_input_devices.clear();
|
||||||
|
_output_devices.clear();
|
||||||
|
_duplex_devices.clear();
|
||||||
|
|
||||||
err = GetHardwarePropertyInfoWrapper (kAudioHardwarePropertyDevices, &size);
|
err = GetHardwarePropertyInfoWrapper (kAudioHardwarePropertyDevices, &size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user