File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2323 libname = 'libportaudio.dylib'
2424elif system == 'Windows' :
2525 libname = 'libportaudio' + architecture0 + '.dll'
26+ libname_asio = 'libportaudio' + architecture0 + '-asio.dll'
2627else :
2728 libname = None
2829
2930if libname and os .path .isdir ('_sounddevice_data/portaudio-binaries' ):
3031 packages = ['_sounddevice_data' ]
3132 package_data = {'_sounddevice_data' : ['portaudio-binaries/' + libname ,
3233 'portaudio-binaries/README.md' ]}
34+ if system == 'Windows' :
35+ package_data ['_sounddevice_data' ].append (
36+ 'portaudio-binaries/' + libname_asio )
3337 zip_safe = False
3438else :
3539 packages = None
Original file line number Diff line number Diff line change 7474 if _platform .system () == 'Darwin' :
7575 _libname = 'libportaudio.dylib'
7676 elif _platform .system () == 'Windows' :
77- _libname = 'libportaudio' + _platform .architecture ()[0 ] + '.dll'
77+ if 'SD_ENABLE_ASIO' in _os .environ :
78+ _libname = 'libportaudio' + _platform .architecture ()[0 ] + '-asio.dll'
79+ else :
80+ _libname = 'libportaudio' + _platform .architecture ()[0 ] + '.dll'
7881 else :
7982 raise
8083 import _sounddevice_data
You can’t perform that action at this time.
0 commit comments