From dd1ae6f20dc8ee6ebe8712af39bb92c59d84b658 Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Sun, 11 Oct 2026 00:36:10 -0400 Subject: [PATCH] A route change during a Take asks for the rate the Take runs at, not 48 kHz Found by the whole-app review: a regression from #308. Assisted-by: Claude Code:claude-opus-5-5 Claude-Session: https://claude.ai/code/session_01S6amVoNeB4GahnMMe79dZ6 --- App/RecordScreen.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/App/RecordScreen.swift b/App/RecordScreen.swift index 946acc09..41cb7722 100644 --- a/App/RecordScreen.swift +++ b/App/RecordScreen.swift @@ -1074,7 +1074,8 @@ final class RecordScreenModel { private func moveTakeToCurrentRoute() { let wasStopped = interruptions.isInputStopped do { - let device = try SessionAudioDevice.current() + // Ask for the rate the Take runs at (#195): the default 48 kHz would end a 96 or 44.1 kHz Take. + let device = try SessionAudioDevice.current(sampleRate: recorder.sampleRate) let continued = try recorder.restartInput(on: device) noteOfferedChannels(of: device) armedDevice = devices.first { $0.id == selectedDeviceID }?.info