diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2024-10-01 21:22:53 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2024-10-01 21:34:12 +0200 |
| commit | 00ef17cc8f3217128381a22135364460b5824e1a (patch) | |
| tree | ece54f2ed36d9c99715b4a35880ba854df359907 | |
| parent | 6cdd114a8a9559de6dd5a9f6714a908d79f9c10f (diff) | |
CI: load ASIO DLL
| -rw-r--r-- | .github/workflows/sounddevice-data.yml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/sounddevice-data.yml b/.github/workflows/sounddevice-data.yml index a790098..3b1aecb 100644 --- a/.github/workflows/sounddevice-data.yml +++ b/.github/workflows/sounddevice-data.yml @@ -33,8 +33,22 @@ jobs: working-directory: git-repo run: | python -m pip install . - - name: Run tests + - name: Import module run: | python -m sounddevice python -c "import sounddevice as sd; print(sd._libname)" python -c "import sounddevice as sd; print(sd.get_portaudio_version())" + python -c "import sounddevice as sd; print(sd.query_hostapis())" + python -c "import sounddevice as sd; assert 'asio' not in sd._libname" + python -c "import sounddevice as sd; assert not any(a['name'] == 'ASIO' for a in sd.query_hostapis())" + - name: Import module (using the ASIO DLL) + if: startsWith(matrix.os, 'windows') + env: + SD_ENABLE_ASIO: 1 + run: | + python -m sounddevice + python -c "import sounddevice as sd; print(sd._libname)" + python -c "import sounddevice as sd; print(sd.get_portaudio_version())" + python -c "import sounddevice as sd; print(sd.query_hostapis())" + python -c "import sounddevice as sd; assert 'asio' in sd._libname" + python -c "import sounddevice as sd; assert any(a['name'] == 'ASIO' for a in sd.query_hostapis())" |
