'play -> 'open

This commit is contained in:
2026-07-07 12:09:33 +02:00
parent 781a21a5d6
commit 070f6bd12a
+2 -2
View File
@@ -274,10 +274,10 @@
(define/contract (audio-play! handle audio-file)
(-> audio-play? path-string? number?)
(let ((r (ap-rpc handle 'play audio-file)))
(let ((r (ap-rpc handle 'open audio-file)))
(if (eq? (car r) 'ok)
(cadr r)
(raise-audio-error 'audio-error "audio-player: unexpected return value from 'play command: ~a" r))))
(raise-audio-error 'audio-error "audio-play!: unexpected return value from 'open command: ~a" r))))
(define/contract (audio-pause! handle paused)
(-> audio-play? boolean? symbol?)