pause behavior
This commit is contained in:
@@ -765,12 +765,16 @@
|
||||
)
|
||||
|
||||
(define (ao_pause_async h paused)
|
||||
(dbg-sound "ao_pause_async ~a" paused)
|
||||
(sync-log-sound)
|
||||
(if (ao-handle-paused h)
|
||||
(when (eq? paused #f)
|
||||
(mutex-unlock (ao-handle-pause-mutex h))
|
||||
(set-ao-handle-paused! h #f)
|
||||
)
|
||||
(when (eq? paused #t)
|
||||
(dbg-sound "locking pause mutex")
|
||||
(sync-log-sound)
|
||||
(mutex-lock (ao-handle-pause-mutex h))
|
||||
(set-ao-handle-paused! h #t)
|
||||
(dbg-sound "paused")
|
||||
|
||||
Reference in New Issue
Block a user