Revert "Fix: Allow device switching during recording on disconnection"
This reverts commit 0445dca865d0776c5ffe7efe502b001c151d37ea.
This commit is contained in:
parent
0445dca865
commit
003e0d8205
@ -447,6 +447,13 @@ class AudioDeviceManager: ObservableObject {
|
|||||||
private func handleDeviceListChange() {
|
private func handleDeviceListChange() {
|
||||||
logger.info("Device list change detected")
|
logger.info("Device list change detected")
|
||||||
|
|
||||||
|
// Don't change devices while recording is active
|
||||||
|
// This prevents audio engine errors during recording startup
|
||||||
|
if isRecordingActive {
|
||||||
|
logger.info("Recording is active - deferring device change handling")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
loadAvailableDevices { [weak self] in
|
loadAvailableDevices { [weak self] in
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user