fix(audio): Reduce recording validation timer for faster feedback

This commit is contained in:
Beingpax 2025-12-21 20:28:14 +05:45
parent 873379c0ca
commit 3306c6a6e4

View File

@ -110,7 +110,7 @@ class AudioEngineRecorder: ObservableObject {
}
private func startValidationTimer(url: URL, retryCount: Int) {
validationTimer = Timer.scheduledTimer(withTimeInterval: 3.0, repeats: false) { [weak self] _ in
validationTimer = Timer.scheduledTimer(withTimeInterval: 1.5, repeats: false) { [weak self] _ in
guard let self = self else { return }
let validationPassed = self.hasReceivedValidBuffer