This commit is contained in:
2026-02-26 15:53:58 +01:00
parent 752315ba05
commit c2ef8bcc99
3 changed files with 21 additions and 14 deletions

View File

@@ -15,6 +15,7 @@
)
)
(ao-set-async-mode! 'scheme)
;(define fmt (ao-mk-format 24 48000 2 'big-endian))
;(define ao-h (ao-open-live #f fmt))
@@ -34,7 +35,7 @@
(when (eq? ao-h #f)
(let ((fmt (ao-mk-format bits-per-sample rate channels 'big-endian)))
(set! ao-h (ao-open-live #f fmt))))
(ao-play ao-h second buffer)
(ao-play ao-h second duration buffer)
(let ((second-printer (λ ()
(let ((s (inexact->exact (round (ao-at-second ao-h)))))
(unless (= s current-seconds)