-
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
How to include Jack in API list for sounddevice (on Windows)? #568
Comments
I'm not a Windows user, so I don't know for sure, but I think you have to start the JACK daemon (a.k.a. Here's an example how OTOH, your log messages already show some output from JACK, so I don't know if that's it. For compiling the PortAudio DLL with JACK enabled, I guess you'll need to set |
The typical way I've worked with Jack in the past on Windows apps is to use the jackclient-python library. Then I just create the app as a Jack client, set the number of ports up I want connect and connect them to Jack. Jack works great on Windows itself, but I was hoping to streamline ASIO, WASAPI and JACK via sounddevice, but don't seem to be able to get sounddevice to set itself up as a Jack client in a similar way. Typical way I start Jack is like this for testing: ./jackd.exe -v -m -S -dportaudio -d"Windows WASAPI::Headphones (Realtek(R) Audio)" -r48000 -p512 -P I'll try building the .sln via cmake, I'm not convinced PA_USE_JACK=1 actually is doing anything though so don't see why cmake would fix that when it works for ASIO. |
Still not having much luck with sounddevice and Jack. I kind of gave up on using Jack direct and would just direct users to use the JackRouter ASIO driver that gets installed with Jack Audio Connection Kit but sounddevice doesn't even find that. e.g. import os
0 Microsoft Sound Mapper - Output, MME (0 in, 2 out) If I look at the ASIO device list on any ASIO application I see JackRouter ASIO as an option? |
I've added ASIO to portaudio.dll for sounddevice to include ASIO devices as options no problem, but how do we use Jack with sounddevice? All documentation i've read on how to do it seems to think C:\Program Files\JACK2\bin exists but I don't think Jack2 uses it anymore. What Jack includes/preprocessors am I meant to be building portaudio.dll with for sounddevice to list Jack as a client api so I can connect/create to Jack ports?
In my Visual Studio properties I have setup:
Include Path: C:\Program Files\JACK2\include
Library Path: C:\Program Files\JACK2\lib
Linker Dependencies: libjack64.lib
I have a Preprocessor definition of: PA_USE_JACK=1 same way I have PA_USE_ASIO=1 and which worked.
It seems libjack64.dll is also required and that seems to get installed to C:\Windows by Jack2 installer so would be included automatically in the portaudio.dll build.
The text was updated successfully, but these errors were encountered: