Skip to content

Commit 5a079cd

Browse files
committed
Add tests for realtime speakers out
1 parent 60f220c commit 5a079cd

2 files changed

Lines changed: 502 additions & 3 deletions

File tree

src/simulflow/transport.clj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,10 @@
455455
(let [current-time (u/mono-time)]
456456
(cond
457457
;; Handle incoming audio frames - core business logic moved here
458-
;; Handle incoming audio frames - use pure function for business logic
459458
(and (= input-port :in)
460459
(frame/audio-output-raw? frame))
461460
(process-realtime-out-audio-frame state frame serializer current-time)
462461

463-
;; Handle timer ticks for speech monitoring - moved from background loop
464462
(and (= input-port :timer-out)
465463
(:timer/tick frame))
466464
(let [silence-duration (- (:timer/timestamp frame) (::last-audio-time state))

0 commit comments

Comments
 (0)