-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WDM-KS support in PortAudio from PyPi install #286
Comments
You should check which DLL is actually used, e.g. by looking at
Yes, see https://github.com/spatialaudio/portaudio-binaries. The device list contains WDM-KS entries, so it is supported. That doesn't necessarily mean it also works ... |
Hi,
This issue also occurred on pip's sounddevice 0.4.1 using PortAudio V19.6. I hope this information helps. If there is any additional information that could help you, please let me know .... |
Thanks @blattm! It's good to know that the DLL from The way the DLLs are created is different, so it is possible that the behavior is different as well. The DLL bundled with the Maybe this should be reported to https://github.com/PortAudio/portaudio? I'm not a Windows user and I have no clue about Windows (nor MinGW), so I cannot really do anything. |
Hi, So the work around I currently use is to to take the version of sounddevice from pip if I plan to use ASIO, and the version from anaconda when I plan to use WDM-KS. But this requires two virtual environments. In case of distributing a program as an executable (e.g. via pyinstaller), two different executables are required. However, a potentially better workaround just came to my mind. Of course, solving the underlying problem related to MinGW and PortAudio would be better, but I assume that's not happening soon. |
There is currently no simple way to do this, see #130. As a work-around, you could probably monkey-patch
|
This works for me. |
Hello there!
I'm using sounddevice on Windows 10, having installed it with pip.
I'm using a Scarlett 6i6 external sound module and it seems that I can only open the MME devices, not the WDS-KS ones.
Using
query_devices()
, I get:If I set
sounddevice.default.device = (USB Audio 2.0), MME
, everything works. But if I setsounddevice.default.device = scarlett
, I getsounddevice.PortAudioError: Error opening Stream: Invalid device [PaErrorCode -9996]
I understand that this error is coming directly from the PortAudio library. Does the PortAudio library for Windows that comes with sounddevice support WDM-KS?
Thank you.
The text was updated successfully, but these errors were encountered: