Skip to content

Commit

Permalink
search for both libportaudio and portaudio shared libs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbclements committed Aug 4, 2020
1 parent 11a01fa commit f641cc7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions portaudio/portaudio.rkt
Expand Up @@ -37,12 +37,16 @@
'(lib "portaudio/lib")
#:combine
(λ (_ path)
(ffi-lib (build-path path "libportaudio")
portaudio-version-strings
#:fail (λ () #f)))
(or (ffi-lib (build-path path "libportaudio")
portaudio-version-strings
#:fail (λ () #f))
(ffi-lib (build-path path "portaudio")
portaudio-version-strings
#:fail (λ () #f))))
#:break?
not-false?)
(ffi-lib "libportaudio" portaudio-version-strings))))
(ffi-lib "libportaudio" portaudio-version-strings)
(ffi-lib "portaudio" portaudio-version-strings))))

;; wrap a function to signal an error when an error code is returned.
;; (any ... -> pa-error) -> (any ... -> )
Expand Down

0 comments on commit f641cc7

Please sign in to comment.