Success coupling Windows-VM's audio with Linux
Moderators: MattKingUSA, khz
- bluebell
- Established Member
- Posts: 1924
- Joined: Sat Sep 15, 2012 11:44 am
- Location: Saarland, Germany
- Has thanked: 112 times
- Been thanked: 119 times
Success coupling Windows-VM's audio with Linux
I finally got it: high quality sound from Windows to Linux and vice versa.
Given:
Windows 10 VM on my Linux notebook (kvm/libvirt/qemu)
Linux notebook as main machine and VM host
1.) Setup a network bridge on the Linux notebook to connect the Windows VM to. Since I use netjack2 I had some problems getting the Linux' jackd to listen to the "NAT bridge" that libvirt defines.
If you have 2 different machines (no VM) on the same Ethernet then you have no problem anyway
2.) Install JACK for Windows from https://jackaudio.org/downloads/ with all options (important: JackRouter)
Set under [AUTO_CONNECT] input=0 output=0 in both 32and 64bit JackRouter.ini because there's a nasty off-by-one error.
Use Qjackctl's patchbay instead.
Use the "net" driver in Qjackctl's settings.
3.) On Linux: jack_load netmanager
4.) Install ASIOBridge from https://vb-audio.com/Cable/index.htm#DownloadASIOBridge
Now all "normal" Windows applications output to VB-Audio ASIO Bridge, the ASIO bridge outputs to JackRouter and JackRouter outputs to Netjack.
ASIO applications (e.g. Wavosaur when set to ASIO) output to JackRouter directly.
Have fun.
Given:
Windows 10 VM on my Linux notebook (kvm/libvirt/qemu)
Linux notebook as main machine and VM host
1.) Setup a network bridge on the Linux notebook to connect the Windows VM to. Since I use netjack2 I had some problems getting the Linux' jackd to listen to the "NAT bridge" that libvirt defines.
If you have 2 different machines (no VM) on the same Ethernet then you have no problem anyway
2.) Install JACK for Windows from https://jackaudio.org/downloads/ with all options (important: JackRouter)
Set under [AUTO_CONNECT] input=0 output=0 in both 32and 64bit JackRouter.ini because there's a nasty off-by-one error.
Use Qjackctl's patchbay instead.
Use the "net" driver in Qjackctl's settings.
3.) On Linux: jack_load netmanager
4.) Install ASIOBridge from https://vb-audio.com/Cable/index.htm#DownloadASIOBridge
Now all "normal" Windows applications output to VB-Audio ASIO Bridge, the ASIO bridge outputs to JackRouter and JackRouter outputs to Netjack.
ASIO applications (e.g. Wavosaur when set to ASIO) output to JackRouter directly.
Have fun.
Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/
- Fmajor7add9
- Established Member
- Posts: 218
- Joined: Sun Dec 31, 2017 3:56 am
- Location: Might be moving to Montana soon
- Has thanked: 48 times
- Been thanked: 27 times
- Contact:
Re: Success coupling Windows-VM's audio with Linux
Great! Got the impression elsewhere that netjack could be dodgy so good to see it working for someone.
How fast is VB ASIO bridge? Or slow...
The fastest one I've tried is Synchronous Audio Router - http://sar.audio/
How fast is VB ASIO bridge? Or slow...
The fastest one I've tried is Synchronous Audio Router - http://sar.audio/
- bluebell
- Established Member
- Posts: 1924
- Joined: Sat Sep 15, 2012 11:44 am
- Location: Saarland, Germany
- Has thanked: 112 times
- Been thanked: 119 times
Re: Success coupling Windows-VM's audio with Linux
I didn't measure latencies. They woudn't be a problem for me, though.Fmajor7add9 wrote: ↑Fri May 14, 2021 6:07 pm Great! Got the impression elsewhere that netjack could be dodgy so good to see it working for someone.
How fast is VB ASIO bridge? Or slow...
The fastest one I've tried is Synchronous Audio Router - http://sar.audio/
As I read you can't load sar.audio's driver without putting Windows in a testsign mode. That put me off.
Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/
- bluebell
- Established Member
- Posts: 1924
- Joined: Sat Sep 15, 2012 11:44 am
- Location: Saarland, Germany
- Has thanked: 112 times
- Been thanked: 119 times
Re: Success coupling Windows-VM's audio with Linux
Set the sampling rate of the Windows ASIOBridge devices (input and output) to the same as in Jack, else you get a crackling and transposed sound when recording with Audacity.
Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/
- bluebell
- Established Member
- Posts: 1924
- Joined: Sat Sep 15, 2012 11:44 am
- Location: Saarland, Germany
- Has thanked: 112 times
- Been thanked: 119 times
Re: Success coupling Windows-VM's audio with Linux
I wrote a German language article: https://www.amazona.de/community/worksh ... verbinden/
Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/
- matterisvoid
- Established Member
- Posts: 37
- Joined: Sun Jan 03, 2021 7:05 am
- Has thanked: 8 times
- Been thanked: 6 times
Re: Success coupling Windows-VM's audio with Linux
Very cool! Do you think that something similar could be done with Windows as the host and Linux as the guest?
Last edited by matterisvoid on Tue Jul 06, 2021 4:21 pm, edited 1 time in total.
- bluebell
- Established Member
- Posts: 1924
- Joined: Sat Sep 15, 2012 11:44 am
- Location: Saarland, Germany
- Has thanked: 112 times
- Been thanked: 119 times
Re: Success coupling Windows-VM's audio with Linux
On WIndows there is a jack_net_master.exe, so it's worth a try.
Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/