This commit is contained in:
2026-02-26 17:05:17 +01:00
parent 674123dc83
commit 8eadceac21

View File

@@ -156,11 +156,16 @@
(if (number? handle)
(let ((ao-device (hash-ref devices handle #f)))
(close-device #f ao-device))
(unless (eq? ao-device #f)
(displayln (format "Closing ao device ~a" ao-device))
(close-device #f ao-device)
(hash-remove! devices handle)))
(let ((handle-num (ao-handle-handle-num handle)))
(let ((ao-device (hash-ref devices handle-num #f)))
(unless (eq? ao-device #f)
(displayln (format "ao-device = ~a" ao-device))
(close-device handle ao-device))
(close-device handle ao-device)
(hash-remove! devices handle-num)))
)
)
)