MCPcopy Create free account
hub / github.com/altic-dev/FluidVoice / refreshInputDevices

Method refreshInputDevices

Sources/Fluid/ContentView.swift:1543–1559  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

ContentViewStruct · 0.95

Tested by

no test coverage detected