mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-04-08 02:13:35 +00:00
initial commit
This commit is contained in:
10
src/nvda_voicemeeter/cdll.py
Normal file
10
src/nvda_voicemeeter/cdll.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import ctypes as ct
|
||||
from pathlib import Path
|
||||
|
||||
bits = 64 if ct.sizeof(ct.c_voidp) == 8 else 32
|
||||
|
||||
controller_path = Path(__file__).parents[2].resolve() / "controllerClient"
|
||||
|
||||
DLL_PATH = controller_path / f"x{64 if bits == 64 else 86}" / f"nvdaControllerClient{bits}.dll"
|
||||
|
||||
libc = ct.CDLL(str(DLL_PATH))
|
||||
Reference in New Issue
Block a user