adjustment to the new audio-player module of racket-audio
This commit is contained in:
@@ -44,6 +44,11 @@
|
||||
(send rktplayer-window close)
|
||||
(exit)
|
||||
)
|
||||
|
||||
(define-syntax ignore
|
||||
(syntax-rules ()
|
||||
((_ body)
|
||||
#t)))
|
||||
|
||||
|
||||
(define (run . no-exit)
|
||||
@@ -59,6 +64,7 @@
|
||||
)
|
||||
(set! rktplayer-window window)
|
||||
(set! rktplayer-tray tray)
|
||||
(ignore
|
||||
(thread (λ ()
|
||||
(sleep 5)
|
||||
(let ((prg (string-append "let f_evt_info = window.rkt_event_info;\n"
|
||||
@@ -91,6 +97,7 @@
|
||||
(return 42)))))|#
|
||||
(displayln prg)
|
||||
(displayln (send window call-js prg)))))
|
||||
)
|
||||
(when (or (null? no-exit)
|
||||
(not (eq? (car no-exit) #t)))
|
||||
(webview-wait-for-quit)
|
||||
|
||||
Reference in New Issue
Block a user