Page 1 of 1

Success coupling Windows-VM's audio with Linux

Posted: Fri May 14, 2021 2:53 pm
by bluebell
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.
screen.jpg
screen.jpg (196.93 KiB) Viewed 7402 times

Re: Success coupling Windows-VM's audio with Linux

Posted: Fri May 14, 2021 6:07 pm
by Fmajor7add9
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/

Re: Success coupling Windows-VM's audio with Linux

Posted: Sat May 15, 2021 7:15 am
by bluebell
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/
I didn't measure latencies. They woudn't be a problem for me, though.

As I read you can't load sar.audio's driver without putting Windows in a testsign mode. That put me off.

Re: Success coupling Windows-VM's audio with Linux

Posted: Sat May 15, 2021 8:12 am
by bluebell
bluebell wrote: Fri May 14, 2021 2:53 pm I finally got it: high quality sound from Windows to Linux and vice versa.
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.

Re: Success coupling Windows-VM's audio with Linux

Posted: Mon May 17, 2021 9:19 am
by bluebell

Re: Success coupling Windows-VM's audio with Linux

Posted: Mon Jul 05, 2021 10:26 pm
by matterisvoid
Very cool! Do you think that something similar could be done with Windows as the host and Linux as the guest?

Re: Success coupling Windows-VM's audio with Linux

Posted: Tue Jul 06, 2021 11:58 am
by bluebell
On WIndows there is a jack_net_master.exe, so it's worth a try.