Make sure libao-1.2.2 is loaded in windows.

This commit is contained in:
2026-04-16 09:13:15 +02:00
parent b9051d5dbd
commit 8182b17096
2 changed files with 6 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
(require ffi/unsafe
ffi/unsafe/define
"private/utils.rkt"
"libao-ffi.rkt"
;"libao-ffi.rkt"
)
(provide ao_create_async
@@ -48,6 +48,9 @@
))
(when (eq? (system-type 'os) 'windows)
(void (get-lib '("libao-1.2.2") '(#f))))
(define lib (get-lib '("ao-play-async" "libao-play-async") '(#f)))
;(define lib (ffi-lib "/home/hans/src/racket/racket-sound-lib/lib/linux-x86_64/libao-play-async.so"))
(define-ffi-definer define-libao-async lib