-
This commit is contained in:
@@ -86,6 +86,7 @@
|
|||||||
(letrec ((reader (lambda (frame-nr)
|
(letrec ((reader (lambda (frame-nr)
|
||||||
(if (flac-handle-stop-reading handle)
|
(if (flac-handle-stop-reading handle)
|
||||||
(begin
|
(begin
|
||||||
|
(displayln (format "handling stop at: ~a" (current-milliseconds)))
|
||||||
(set-flac-handle-reading! handle #f)
|
(set-flac-handle-reading! handle #f)
|
||||||
'stopped-reading)
|
'stopped-reading)
|
||||||
(let* ((st (ffi-handler 'state)))
|
(let* ((st (ffi-handler 'state)))
|
||||||
@@ -137,10 +138,12 @@
|
|||||||
|
|
||||||
(define (flac-stop handle)
|
(define (flac-stop handle)
|
||||||
(let ((ct (current-milliseconds)))
|
(let ((ct (current-milliseconds)))
|
||||||
|
(displayln (format "requesting stop at: ~a" ct))
|
||||||
(set-flac-handle-stop-reading! handle #t)
|
(set-flac-handle-stop-reading! handle #t)
|
||||||
(while (flac-handle-reading handle)
|
(while (flac-handle-reading handle)
|
||||||
(sleep 0.01))
|
(sleep 0.01))
|
||||||
(let ((ct* (current-milliseconds)))
|
(let ((ct* (current-milliseconds)))
|
||||||
|
(displayln (format "stop came back at: ~a" ct*))
|
||||||
(displayln (format "flac-stop took: ~a ms" (- ct* ct))))
|
(displayln (format "flac-stop took: ~a ms" (- ct* ct))))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user