Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

build: label the audio clock's tuple so Swift 6.4 can type-check it

wquguru1d4f00ac5f4e
diff --git a/Sources/LiveSubs/AudioRouter.swift b/Sources/LiveSubs/AudioRouter.swift
index 081c1b8..ae6cf80 100644
--- a/Sources/LiveSubs/AudioRouter.swift
+++ b/Sources/LiveSubs/AudioRouter.swift
@@ -183,7 +183,7 @@ final class AudioRouter: @unchecked Sendable {
func fedSeconds() -> Double { queue.sync { fed } }
/// Analyzer clock now, the silence running at the end of it, and the last pause before that.
func clock() -> (fed: Double, silence: Double, pause: (end: Double, length: Double)) {
- queue.sync { (fed, silenceRun, pause) }
+ queue.sync { (fed: fed, silence: silenceRun, pause: pause) }
}
func attach(_ stream: RecognitionStream, replaySeconds: Double = 0) {