paused handling
This commit is contained in:
@@ -474,9 +474,15 @@
|
|||||||
(get h 150))))
|
(get h 150))))
|
||||||
(mutex-unlock (ao-handle-clear-mutex h))
|
(mutex-unlock (ao-handle-clear-mutex h))
|
||||||
(if (eq? elem #f)
|
(if (eq? elem #f)
|
||||||
|
(if (ao-handle-paused h)
|
||||||
|
(begin
|
||||||
|
(dbg-sound "run thread paused")
|
||||||
|
(sleep 0.1)
|
||||||
|
)
|
||||||
(begin
|
(begin
|
||||||
(dbg-sound "nothing in the queue")
|
(dbg-sound "nothing in the queue")
|
||||||
(sleep 0.01))
|
(sleep 0.01))
|
||||||
|
)
|
||||||
(begin
|
(begin
|
||||||
(if (eq? (queue-elem-command elem) 'stop)
|
(if (eq? (queue-elem-command elem) 'stop)
|
||||||
(set! go-on #f)
|
(set! go-on #f)
|
||||||
@@ -767,6 +773,7 @@
|
|||||||
(when (eq? paused #t)
|
(when (eq? paused #t)
|
||||||
(mutex-lock (ao-handle-pause-mutex h))
|
(mutex-lock (ao-handle-pause-mutex h))
|
||||||
(set-ao-handle-paused! h #t)
|
(set-ao-handle-paused! h #t)
|
||||||
|
(dbg-sound "paused")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user