ALSA to JACK Audio? (Solved, but not good!)

Mission statement, forum posting guides, and our vision for LM.

Moderators: MattKingUSA, khz

Post Reply
User avatar
TAERSH
Established Member
Posts: 455
Joined: Mon Feb 03, 2020 6:48 pm
Has thanked: 27 times
Been thanked: 21 times

ALSA to JACK Audio? (Solved, but not good!)

Post by TAERSH »

Hi.

Is there a plugin or another program that would make it possible to connect audio output of ALSA only programs to JACK audio?

Thanks.
Last edited by TAERSH on Tue Dec 08, 2020 12:25 am, edited 2 times in total.
Kott
Established Member
Posts: 818
Joined: Thu Mar 21, 2013 12:55 am
Location: Vladivostok
Has thanked: 65 times
Been thanked: 122 times

Re: ALSA to JACK Audio?

Post by Kott »

User avatar
TAERSH
Established Member
Posts: 455
Joined: Mon Feb 03, 2020 6:48 pm
Has thanked: 27 times
Been thanked: 21 times

Re: ALSA to JACK Audio? (Solved)

Post by TAERSH »

Thanks.

Tried the 2nd solution: not working!
Last edited by TAERSH on Mon Nov 16, 2020 7:29 am, edited 1 time in total.
User avatar
TAERSH
Established Member
Posts: 455
Joined: Mon Feb 03, 2020 6:48 pm
Has thanked: 27 times
Been thanked: 21 times

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by TAERSH »

Aaargghh...

I found my OS only has a cutdown version of libasound2 package installed.
I also found I placed the additional parts

Code: Select all

pcm.rawjack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}

pcm.jack {
    type plug
    slave { pcm "rawjack" }
    hint {
 	description "JACK Audio Connection Kit"
    }
}
into the wrong file, as my OS doesn't have ~/.asoundrc. Instead it has:

/etc/asound.conf
/etc/asound.state

I placed the parts into /etc/asound.state. After placing into /etc/asound.conf it works.
Now I'm able to use Gnome WaveCleaner under JACK. :D

Again thanks!
Last edited by TAERSH on Tue Dec 08, 2020 12:25 am, edited 1 time in total.
User avatar
TAERSH
Established Member
Posts: 455
Joined: Mon Feb 03, 2020 6:48 pm
Has thanked: 27 times
Been thanked: 21 times

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by TAERSH »

After having this running for some weeks I found this solution being very "buggy" or unstable.
On Palemoon browser -which uses ALSA- it's almost impossible to listen to music online.
The Gnome Wave Cleaner works so far on short pieces of music, though listening cleaned album recordings in complete is also almost impossible.

So, I removed that from my OS again.
User avatar
alexson
Established Member
Posts: 47
Joined: Thu Feb 25, 2021 12:31 pm
Location: Scottsdale, Arizona
Been thanked: 7 times
Contact:

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by alexson »

Jack audio connection kit.
https://jackaudio.org/
User avatar
TAERSH
Established Member
Posts: 455
Joined: Mon Feb 03, 2020 6:48 pm
Has thanked: 27 times
Been thanked: 21 times

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by TAERSH »

alexson wrote: Thu Mar 04, 2021 6:38 am Jack audio connection kit.
https://jackaudio.org/
:?: :?: :?:
tramp
Established Member
Posts: 2335
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 454 times

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by tramp »

This is by far easier to be done by using pulseaudio.
On the road again.
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by khz »

Install "a2jmidid" and "pulseaudio-module-jack".

In qjackctl Setup:
Setup >> Options > [X] Run script after startup: "pacmd load-module module-jack-source channels=2 && pacmd load-module module-jack-sink channels=2 && sleep 5 && a2jmidid -e &" (without dbus)
:?:
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
User avatar
TAERSH
Established Member
Posts: 455
Joined: Mon Feb 03, 2020 6:48 pm
Has thanked: 27 times
Been thanked: 21 times

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by TAERSH »

Hi.

I don't have pulse audio installed and I'm not going to install pulse audio into my OS.
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by khz »

Not installing/using Pulseaudio is the most sensible thing to do for a LAW.

If https://jackaudio.org/faq/routing_alsa.html doesn't work with your system, then in a pinch build the appropriate programs yourself with ALSA/jackd support.
With Gentoo I have the possibility to set USE-Flags https://wiki.gentoo.org/wiki/USE_flag.
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
oddy.o.lynx
Established Member
Posts: 115
Joined: Sat Jun 30, 2018 2:54 am
Has thanked: 22 times
Been thanked: 22 times

Re: ALSA to JACK Audio? (Solved, but not good!)

Post by oddy.o.lynx »

I use Cadence as it can neatly start and stop Alsa2Jack bridges
Post Reply