diff options
| author | Hazem Nabil <arkrow@protonmail.com> | 2024-09-04 23:44:22 +0300 |
|---|---|---|
| committer | Hazem Nabil <arkrow@protonmail.com> | 2024-09-05 00:34:49 +0300 |
| commit | 2748f7049a36e7ada23de2f39c4bb2e5038c4796 (patch) | |
| tree | 2908241b106d00ff67feb0c474766a58cf961648 /sounddevice.py | |
| parent | a1b4fbc3aff659e3063b228e355b1e6ebbeec656 (diff) | |
Based on an environ flag, load the ASIO PortAudio binary
Diffstat (limited to 'sounddevice.py')
| -rw-r--r-- | sounddevice.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py index 18f7d1d..85144e9 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -74,7 +74,10 @@ except OSError: if _platform.system() == 'Darwin': _libname = 'libportaudio.dylib' elif _platform.system() == 'Windows': - _libname = 'libportaudio' + _platform.architecture()[0] + '.dll' + if 'SD_ENABLE_ASIO' in _os.environ: + _libname = 'libportaudio' + _platform.architecture()[0] + '-asio.dll' + else: + _libname = 'libportaudio' + _platform.architecture()[0] + '.dll' else: raise import _sounddevice_data |
