We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a341da commit 475ea24Copy full SHA for 475ea24
VoiceAgent/Devices/DeviceSwitcher.swift
@@ -27,7 +27,9 @@ final class DeviceSwitcher: ObservableObject {
27
28
private func observeDevices() {
29
try? AudioManager.shared.set(microphoneMuteMode: .inputMixer) // don't play mute sound effect
30
- try? AudioManager.shared.setRecordingAlwaysPreparedMode(true)
+ Task {
31
+ try await AudioManager.shared.setRecordingAlwaysPreparedMode(true)
32
+ }
33
34
AudioManager.shared.onDeviceUpdate = { [weak self] _ in
35
Task { @MainActor in
0 commit comments