windows - needs to preload ffmpeg libraries

This commit is contained in:
2026-04-28 23:00:01 +02:00
parent 08ca038b68
commit 1356400639
3 changed files with 15 additions and 3 deletions
+12
View File
@@ -17,6 +17,18 @@
;; Adjust the names below if your shared library has another basename.
;; get-lib is used in the same style as libmpg123-ffi.rkt.
(when (eq? (system-type 'os) 'windows)
; preload ffmpeg dlls.
(void
(begin
(get-lib '("avutil-60.dll") '(#f))
(get-lib '("swresample-6.dll") '(#f))
(get-lib '("avformat-62.dll") '(#f))
(get-lib '("avcodec-62") '(#f))
)
)
)
(define lib (get-lib '("ffmpeg_audio" "libffmpeg_audio") '(#f)))
(define-ffi-definer define-ffmpeg-audio lib