()
| 1541 | } |
| 1542 | |
| 1543 | private func refreshInputDevices() { |
| 1544 | DispatchQueue.global(qos: .userInitiated).async { |
| 1545 | let inputs = AudioDevice.listInputDevicesRefreshingLiveness() |
| 1546 | let defaultInputUID = AudioDevice.getDefaultInputDevice()?.uid |
| 1547 | DispatchQueue.main.async { |
| 1548 | self.inputDevices = inputs |
| 1549 | if let selectedInput = self.appServices.microphonePreferenceCoordinator |
| 1550 | .reconcileMicrophoneSelection( |
| 1551 | availableInputs: inputs, |
| 1552 | defaultInputUID: defaultInputUID |
| 1553 | ) |
| 1554 | { |
| 1555 | self.selectedInputUID = selectedInput.uid |
| 1556 | } |
| 1557 | } |
| 1558 | } |
| 1559 | } |
| 1560 | |
| 1561 | // MARK: - Model Management Functions |
| 1562 |
no test coverage detected