Skip to content

Commit 8416006

Browse files
Vampouillemgeier
authored andcommitted
Add support for Windows
1 parent 1e89e2e commit 8416006

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎jack.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
__version__ = "0.2.0"
2727

2828
import errno as _errno
29+
import platform as _platform
2930
from cffi import FFI as _FFI
3031

3132
_ffi = _FFI()
@@ -294,7 +295,13 @@
294295
};
295296
""", packed=True)
296297

297-
_lib = _ffi.dlopen("jack")
298+
if _platform.system() == 'Windows':
299+
if _platform.architecture()[0] == '64bit':
300+
_lib = _ffi.dlopen("libjack64")
301+
else:
302+
_lib = _ffi.dlopen("libjack")
303+
else:
304+
_lib = _ffi.dlopen("jack")
298305

299306
_AUDIO = b"32 bit float mono audio"
300307
_MIDI = b"8 bit raw midi"

0 commit comments

Comments
 (0)