ao buffer timing
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
audio-file
|
||||
audio-play?
|
||||
audio-buf-seconds!
|
||||
audio-ao-buf-ms!
|
||||
audio-ao-buf-ms
|
||||
audio-known-exts?
|
||||
)
|
||||
|
||||
@@ -269,6 +271,14 @@
|
||||
(let ((from (if (< min 1) 1 (if (> min 10) 10 min)))
|
||||
(until (if (< max min) (+ min 1) (if (> max 30) 30 max))))
|
||||
((audio-play-rpc handle) 'buf-seconds from until)))
|
||||
|
||||
(define/contract (audio-ao-buf-ms! handle ms)
|
||||
(-> audio-play? integer? (or/c integer? boolean?))
|
||||
((audio-play-rpc handle) 'ao-buf-ms ms))
|
||||
|
||||
(define/contract (audio-ao-buf-ms handle)
|
||||
(-> audio-play? (or/c integer? boolean?))
|
||||
((audio-play-rpc handle) 'ao-buf-ms))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user