Pulseaudio + Jack + Audacious: connections dropping
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,802
Rep:
Pulseaudio + Jack + Audacious: connections dropping
I'm relatively happy using Pulseaudo with Jack/Jack-Mixer for my computer sound needs. On occasion, though, when playing music via Audacious, I find that the connections between audacious and jack-mixer drop. This seems to occur whenever a stereo music file is followed by a mono music file and is then followed by another stereo file.
Does anyone know of a way to force Audacious to maintain a stereo output even when the input program is mono? I wouldn't much mind if output was directed to only one channel or duplicated to both channels but I haven't run across any configuration settings--or plug-ins--that will let me opt for either of those. Either would be preferable to having the connections to jack-mixer drop altogether and force me to re-establish them manually. Audacious has an option to automatically connect to the "output" but that seems to connect automatically to the system playback channels and not to the audacious channels I've configured in jack-mixer.
Any hints, pointers to HowTos, etc., are warmly welcomed.
Recompile audacious so it is built to use jackd. Guessing this is a Debian type system your using. Apt-get world. Make sure your alsa-plugins are compiled against jackd.
You can. Have all the media in the worldva d if it isnt built against pules and jackd. Tbe. It breaks.
I use slackware. Recompile what I need all the sources come with slackware like it should. https://github.com/Drakeo/jack-pulse-sink
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,802
Original Poster
Rep:
Quote:
Originally Posted by Drakeo
Recompile audacious so it is built to use jackd.
Would this actually be necessary? Audacious already supports Jack and is the output connection type I have been using: File->Settings->Audio->Output plugin->Jack Output.
Quote:
Guessing this is a Debian type system your using.
No. Sorry I wasn't specific. This is happening on OpenSUSE so zypper or the YaST software manager would be the way to go. At last check, all the components in my audio playback chain were up-to-date. (I am due for an OS update which will change the environment, I'm sure. Then I can experience a whole new set of weird software behavior. :^/ )
One option I've considered is to find a method of identifying all the MP3s that are mono and remastering them to still technically be mono but stereo with the same content in both channels. That should prevent the channel changes that are causing jack-mixer channel connection drops. (If my theory about what's going on is correct.) Seems like it'll potentially be a lot of work, though. Opportunity for automation, eh?
Still looking for other options but I'm hoping that this doesn't wind up requiring a whole bunch of more software to fix what I would guess is a common problem. Hard to imagine my usage is unique.
Audacious should have something in settings to allow mono tracks to be remixed to stereo
or else set Audacious to use Pulseaudio playback rather than direct to JACK
Pulseaudio should be able to handle the changes between mono and stereo
and Pulseaudio JACK Sink should remain fixed to stereo
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,802
Original Poster
Rep:
Quote:
Originally Posted by nikgnomic
Audacious should have something in settings to allow mono tracks to be remixed to stereo
I've looked for this. Such an option doesn't seek to exist. There may be a plug-in available that lets a user set this up but if it exists I've yet to find it. Got any leads?
Quote:
or else set Audacious to use Pulseaudio playback rather than direct to JACK
Pulseaudio should be able to handle the changes between mono and stereo
and Pulseaudio JACK Sink should remain fixed to stereo
The reason I went with Jack was to gain more control of the volume levels of multiple sources than I could achieve using Pulseaudio. The jack-mixer program lets me control those in one place. If I rely on PA, I have to open each audio source--which is likely on a different virtual desktop and probably minimized to boot--and adjust it within the application itself using whatever finicky and a-pain-to-use volume control widget the developer decided upon.
I've had "other" issues with pulseaudio over jack. My workaround is the have two users, one uses jack and audio via the alsa loopback device (snd-aloop). The other user uses alsaloop to route audio to pulseaudio over the network. The pulse over the network works directly, but changes like what you've mentioned crashes pulse after about an hour. It's easier to restart alsaloop locally than jack + jack_mixer + pulse on a remote machine every hour (or less).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.