Success coupling Windows-VM's audio with Linux

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Success coupling Windows-VM's audio with Linux

Post 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 7291 times

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
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

Post 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/
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

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

Post 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.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

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

Post 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.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

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

Post by bluebell »

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
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

Post by matterisvoid »

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.
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

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

Post by bluebell »

On WIndows there is a jack_net_master.exe, so it's worth a try.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

Post Reply