audio-play! returns the file id.
The file id is now a randomized number
This commit is contained in:
+3
-3
@@ -9,7 +9,7 @@
|
||||
"tests.rkt"
|
||||
)
|
||||
|
||||
(define place-mode #t)
|
||||
(define place-mode #f)
|
||||
|
||||
(define run-queue #f)
|
||||
(define (set-test a)
|
||||
@@ -60,13 +60,13 @@
|
||||
(if (null? play-queue)
|
||||
(audio-quit! h)
|
||||
(begin
|
||||
(audio-play! h (car play-queue))
|
||||
(dbg-sound "audio-play! -> ~a" (audio-play! h (car play-queue)))
|
||||
(set! play-queue (cdr play-queue))
|
||||
)
|
||||
))
|
||||
(when (eq? run-queue 'once)
|
||||
(set! run-queue #f)
|
||||
(audio-play! h test-file3))
|
||||
(dbg-sound "audio-play! -> ~a" (audio-play! h (car play-queue))))
|
||||
)
|
||||
|
||||
(define h (make-audio-player audio-player-state
|
||||
|
||||
Reference in New Issue
Block a user