Skip to content

Commit 00ef17c

Browse files
committed
CI: load ASIO DLL
1 parent 6cdd114 commit 00ef17c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/sounddevice-data.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,22 @@ jobs:
3333
working-directory: git-repo
3434
run: |
3535
python -m pip install .
36-
- name: Run tests
36+
- name: Import module
3737
run: |
3838
python -m sounddevice
3939
python -c "import sounddevice as sd; print(sd._libname)"
4040
python -c "import sounddevice as sd; print(sd.get_portaudio_version())"
41+
python -c "import sounddevice as sd; print(sd.query_hostapis())"
42+
python -c "import sounddevice as sd; assert 'asio' not in sd._libname"
43+
python -c "import sounddevice as sd; assert not any(a['name'] == 'ASIO' for a in sd.query_hostapis())"
44+
- name: Import module (using the ASIO DLL)
45+
if: startsWith(matrix.os, 'windows')
46+
env:
47+
SD_ENABLE_ASIO: 1
48+
run: |
49+
python -m sounddevice
50+
python -c "import sounddevice as sd; print(sd._libname)"
51+
python -c "import sounddevice as sd; print(sd.get_portaudio_version())"
52+
python -c "import sounddevice as sd; print(sd.query_hostapis())"
53+
python -c "import sounddevice as sd; assert 'asio' in sd._libname"
54+
python -c "import sounddevice as sd; assert any(a['name'] == 'ASIO' for a in sd.query_hostapis())"

0 commit comments

Comments
 (0)