13
0

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:
Robin Gareus 2021-05-29 17:48:45 +02:00
parent bdb5aec1cc
commit df0571892f

View File

@ -595,6 +595,9 @@ CoreAudioPCM::discover()
free(_device_outs); _device_outs = 0;
}
_devices.clear();
_input_devices.clear();
_output_devices.clear();
_duplex_devices.clear();
err = GetHardwarePropertyInfoWrapper (kAudioHardwarePropertyDevices, &size);