Success coupling Windows-VM's audio with Linux

Optimize your system for ultimate performance.

Moderators: khz, MattKingUSA

Post Reply
User avatar
bluebell
Established Member
Posts: 1528
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany
Has thanked: 4 times
Been thanked: 5 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
You do not have the required permissions to view the files attached to this post.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht
User avatar
Fmajor7add9
Established Member
Posts: 218
Joined: Sun Dec 31, 2017 3:56 am
Location: Might be moving to Montana soon
Has thanked: 46 times
Been thanked: 26 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: 1528
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany
Has thanked: 4 times
Been thanked: 5 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 – https://soundcloud.com/suedwestlicht
User avatar
bluebell
Established Member
Posts: 1528
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany
Has thanked: 4 times
Been thanked: 5 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 – https://soundcloud.com/suedwestlicht
User avatar
bluebell
Established Member
Posts: 1528
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany
Has thanked: 4 times
Been thanked: 5 times

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

Post by bluebell »

Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht
Post Reply