[Solved] Alsa to Jack

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
Blindekinder
Established Member
Posts: 112
Joined: Sat Jan 26, 2013 11:42 pm
Has thanked: 1 time
Been thanked: 1 time

[Solved] Alsa to Jack

Post by Blindekinder »

Hi!
I have a dedicated system for sound, a Kubuntu/KX repositories, using Cadence to run Jack. I uninstalled PuleAudio, and I'm not going to reinstall it.
All my sound production softwares are running with Jack, and I always use an external sound interface. However sometimes I need to play a sound from a browser or maybe an app with no Jack outputs. For now, I have no sound at all running Firefox/Chromium, VLC in alsa mode etc...

-alsa2jack bridge in Cadence starts and spawn a Jack client, but no sound. How can I get it work?
-another solution would be to have the browser(or whatever) sound going to internal LS or HP even while Jack is running, but no idea how to do that.

any idea?

Last edited by Blindekinder on Wed Apr 12, 2023 12:13 pm, edited 1 time in total.
Kubuntu 22.04
KX repositories
KDE Plasma Version: 5
Kernel Version: 5.15-lowlatency (64-bit)
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31.1 Gio of RAM
Graphics Processor: Mesa Intel® Xe Graphics / Nvidia Quadro T500 Mobile
Jack2
tseaver
Established Member
Posts: 405
Joined: Mon Mar 13, 2017 6:07 am
Has thanked: 11 times
Been thanked: 100 times

Re: Alsa to Jack

Post by tseaver »

@Blindekinder: AFAIK, you are out of luck for the browser case: both Firefox and Chromium on Linux only speak PulseAudio.

As for the other audio-using apps: anything which wants to use "raw" ALSA is going to expect exclusive access to the soundcard, which is impossible given that JACK has already claimed it.

I've tried using the video card's HDMI audio output in the past for "consumer" audio output, but without success: unacceptable glitching / dropouts / XRUNs made listening to anything more than lo-fi speech unacceptable. YMMV, of course.

Ubuntu, Mixbus32C; acoustic blues / country / jazz
User avatar
d.healey
Established Member
Posts: 611
Joined: Fri Sep 22, 2017 8:33 pm
Has thanked: 278 times
Been thanked: 101 times

Re: Alsa to Jack

Post by d.healey »

You need pulse or better pipe wire

David Healey
YouTube - Free HISE scripting and sample library dev tutorials
Libre Wave - Freedom respecting instruments and effects.
User avatar
bluzee
Established Member
Posts: 339
Joined: Mon Nov 30, 2020 11:43 pm
Has thanked: 18 times
Been thanked: 88 times

Re: Alsa to Jack

Post by bluzee »

What I do is use both the external and the built in sound on the motherboard. Using pulse volume control set the external device to off and leave it on for the internal device. This lets you run jack on the external. Web browser needing pulse can use the internal. The analog monitor outputs from both devices go to a mixer and then to your amplifier or powered monitors . You can hear all audio devices at the same time.

If you don't want to have pulse at all you can use the apluse wrapper program to run your web browser and that will trick it into playing to the device. The browser sees it as pulse audio but in fact it is alsa. You can only use one audio application at a time this way though. It will play to your internal card and you can run jack on the external.

Pulse is fine as long as you keep it on one device and give jack exclusive access to your external device. Just get yourself a mixer if you don't already have one.

Blindekinder
Established Member
Posts: 112
Joined: Sat Jan 26, 2013 11:42 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Alsa to Jack

Post by Blindekinder »

ok, I thought it was an issue on the system. Not nice from Firefox not to support ALSA anymore... I don't want to install PA. I'll try with Pipewire.

Kubuntu 22.04
KX repositories
KDE Plasma Version: 5
Kernel Version: 5.15-lowlatency (64-bit)
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31.1 Gio of RAM
Graphics Processor: Mesa Intel® Xe Graphics / Nvidia Quadro T500 Mobile
Jack2
Blindekinder
Established Member
Posts: 112
Joined: Sat Jan 26, 2013 11:42 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Alsa to Jack

Post by Blindekinder »

bluzee wrote: Fri Mar 10, 2023 4:57 pm

What I do is use both the external and the built in sound on the motherboard. Using pulse volume control set the external device to off and leave it on for the internal device. This lets you run jack on the external. Web browser needing pulse can use the internal. The analog monitor outputs from both devices go to a mixer and then to your amplifier or powered monitors . You can hear all audio devices at the same time.

If you don't want to have pulse at all you can use the apluse wrapper program to run your web browser and that will trick it into playing to the device. The browser sees it as pulse audio but in fact it is alsa. You can only use one audio application at a time this way though. It will play to your internal card and you can run jack on the external.

Pulse is fine as long as you keep it on one device and give jack exclusive access to your external device. Just get yourself a mixer if you don't already have one.

oh, didn't see your post bluzee, this would be the best solution. I don't want to mix entertainment with sound production.

Kubuntu 22.04
KX repositories
KDE Plasma Version: 5
Kernel Version: 5.15-lowlatency (64-bit)
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31.1 Gio of RAM
Graphics Processor: Mesa Intel® Xe Graphics / Nvidia Quadro T500 Mobile
Jack2
Blindekinder
Established Member
Posts: 112
Joined: Sat Jan 26, 2013 11:42 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Alsa to Jack

Post by Blindekinder »

Ok, this config works for me:

Pulse Audio manage internal Intel, and I disabled my interfaces in PA volume control.

Thank you!

Kubuntu 22.04
KX repositories
KDE Plasma Version: 5
Kernel Version: 5.15-lowlatency (64-bit)
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31.1 Gio of RAM
Graphics Processor: Mesa Intel® Xe Graphics / Nvidia Quadro T500 Mobile
Jack2
j_e_f_f_g
Established Member
Posts: 2032
Joined: Fri Aug 10, 2012 10:48 pm
Been thanked: 358 times

Re: Alsa to Jack

Post by j_e_f_f_g »

Blindekinder wrote:

I don't want to mix entertainment with sound production.

What kind of music are you mixing that isn't entertaining?

Author of BackupBand at https://sourceforge.net/projects/backupband/files/
My fans show their support by mentioning my name in their signature.

User avatar
GMaq
Established Member
Posts: 2806
Joined: Fri Sep 25, 2009 1:42 pm
Has thanked: 525 times
Been thanked: 563 times

Re: [Solved] Alsa to Jack

Post by GMaq »

Hi, @Blindekinder

Unless you use only 2 apps regularly and compile most of your own applications including compiling Firefox with JACK or ALSA support every 14 minutes when it updates... the ship to use a regular system with only JACK and ALSA sailed about 10 years ago and it's never coming back.. I don't love PulseAudio but I learned to live with it and have lived with it and Distributed a working system with it for years. I've only briefly tested PipeWire a few times but KXStudio, UbuntuStudio, LibraZik, and AV Linux have had the whole PulseAudio and JACK thing figured out for years it is WELL documented in many places how to make them work. I've seen you post Audio issues here with at least 3 different Distros (mine included). I think you have either a hardware problem or a fundamental misunderstanding of what to expect this stuff to work like..

Last edited by GMaq on Wed Apr 12, 2023 6:25 pm, edited 2 times in total.
Blindekinder
Established Member
Posts: 112
Joined: Sat Jan 26, 2013 11:42 pm
Has thanked: 1 time
Been thanked: 1 time

Re: [Solved] Alsa to Jack

Post by Blindekinder »

GMaq wrote: Wed Apr 12, 2023 12:47 pm

Hi, @Blindekinder

Unless you use like 2 apps regularly and compile most of your own applications including compiling Firefox every 14 minutes when it updates the ship to use a regular system with only JACK and ALSA sailed about 10 years ago and it's never coming back.. I don't love PulseAudio but I learned to live with it and have lived with it and Distributed a working system with it for years. I've only briefly tested PipeWire a few times but KXStudio, UbuntuStudio, LibraZik, and AV Linux have had the whole PulseAudio and JACK thing figured out for years it is WELL documented in many places how to make them work. I've seen you post Audio issues here with at least 3 different Distros (mine included). I think you have either a hardware problem or a fundamental misunderstanding of what to expect this stuff to work like..

This is outer topic:
Sure, since last year I posted a lot of issues.
I started long time ago with a Firewire device and Ubuntu Studio. It used to crash often and I never really solved the issue. I had better result on other distribution like CCRMA, but the best period was with a RME Multiface and an expresscard. During almost ten years I had no hardware issue, using mainly KXStudio with it. Then my computer get too old (in term of hardware, unfortunately cause it was powerful enough to make music!). So I bought a very new Lenovo and a RME Fireface UCXII, and I experience these issues I never had.
I guess my computer is too new. For example the internal card wasn't recognized with AVL. Now everything is getting better.
Beside I test a lot of class-compliant devices and usb mixers I find in theaters and concert venues, or devices like usb-headphone amp, usb-preamps, DACs etc. Most are working, some are not.
This of course has nothing to do with listening the sound of my browser through Jack, which never really work even on my last computer. I only expected to just launch A2J bridge and listen to the tutorial I need, or listen to an inspiring track on Bandcamp. Now I can do that with my headphones, it's ok.

Kubuntu 22.04
KX repositories
KDE Plasma Version: 5
Kernel Version: 5.15-lowlatency (64-bit)
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31.1 Gio of RAM
Graphics Processor: Mesa Intel® Xe Graphics / Nvidia Quadro T500 Mobile
Jack2
Blindekinder
Established Member
Posts: 112
Joined: Sat Jan 26, 2013 11:42 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Alsa to Jack

Post by Blindekinder »

j_e_f_f_g wrote: Wed Apr 12, 2023 12:27 pm
Blindekinder wrote:

I don't want to mix entertainment with sound production.

What kind of music are you mixing that isn't entertaining?

Was it unclear? Sorry: it means I want to keep a seal between the apps that play the sound I produce and the other like browsers, video players, music platform, system sounds, visio etc...
But now you're asking, the first adjective that comes in my mind about for example Alvin Lucier's music (since it was my last performance) is not "entertaining"...

Kubuntu 22.04
KX repositories
KDE Plasma Version: 5
Kernel Version: 5.15-lowlatency (64-bit)
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31.1 Gio of RAM
Graphics Processor: Mesa Intel® Xe Graphics / Nvidia Quadro T500 Mobile
Jack2
User avatar
onefang
Established Member
Posts: 148
Joined: Fri Feb 03, 2023 1:17 am
Location: Australia
Has thanked: 67 times
Been thanked: 11 times
Contact:

Re: [Solved] Alsa to Jack

Post by onefang »

Using apulse here, which redirects pulseaudio using things like firefox to ALSA. No PulseAudio or Pipewire installed here, pure ALSA and JACK.

I prefer to be known as a figment of the 'nets imagination, living in the future, waiting for the rest of you to catch up.
Notes from Untalenz, an untalented old muso https://Untalenz.rocks/

Blindekinder
Established Member
Posts: 112
Joined: Sat Jan 26, 2013 11:42 pm
Has thanked: 1 time
Been thanked: 1 time

Re: [Solved] Alsa to Jack

Post by Blindekinder »

after some weeks of use, I'm pretty happy with the 'PA for internal sound' solution. I deactivated all other devices in PA mixer.

Kubuntu 22.04
KX repositories
KDE Plasma Version: 5
Kernel Version: 5.15-lowlatency (64-bit)
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31.1 Gio of RAM
Graphics Processor: Mesa Intel® Xe Graphics / Nvidia Quadro T500 Mobile
Jack2
Post Reply