windows - needs to preload ffmpeg libraries
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user