version info of the ffi modules

This commit is contained in:
2026-05-04 13:19:48 +02:00
parent c8ef025df9
commit 85613cd013
2 changed files with 26 additions and 0 deletions
+9
View File
@@ -20,6 +20,7 @@
ao_set_volume_async
ao_volume_async
make-BufferInfo_t
ao_version
)
(define _BufferType_t
@@ -50,6 +51,14 @@
[endiannes _Endian_t]
))
(define (ao_version)
(let* ((v (ao_async_version))
(patch (remainder v 256))
(minor (remainder (quotient v 256) 256))
(major (quotient v 65536))
)
(list major minor patch)))
(when (eq? (system-type 'os) 'windows)
(void (get-lib '("libao-1.2.2") '(#f))))