[Csnd] need for jackd

For some ellusive reason my system (ubuntu 22.04) no longer starts jackd from qjackctl.

Am I out of luck as far as getting clean audio from csound? Are there alternatives that work as well? – in what circumstances, what level of use?

Forrest Curo
San Diego

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Why not just use Alsa directly? This is what I do, and I’m quite happy with the quality.

Okay, I used to need jack for csound (& other applications demand it) but I’ll be happy enough not having to deal with so many quirks!

I’ve never needed to use jack with Csound.

Do you have pipewire installed?

If so

  1. make sure nothing is competing with pipewire-jack, pipewire-alsa, or pipewire-pulseaudio packages
  2. download qwgraph

then you will be allowed to use qjackctl (or qwgraph) to make connections and all the servers will sit happily next to each other without using wacky sinks or any of that stuff

otherwise it will break everything

~$ pipewire
[E][02429.920421] mod.protocol-native | [module-protocol-: 660 lock_socket()] server 0x560d0a4fa310: unable to lock lockfile ‘/run/user/1000/pipewire-0.lock’: Resource temporarily unavailable (maybe another daemon is running)
[E][02429.920730] pw.conf | [ conf.c: 560 load_module()] 0x560d0a4e1170: could not load mandatory module “libpipewire-module-protocol-native”: Resource temporarily unavailable
[E][02429.921164] default | [ pipewire.c: 123 main()] failed to create context: Resource temporarily unavailable

(?)

Well that is better at least we know its running

As i said check packages… pipewire will conflict with all pulseaudio/jack/alsa packages it completely takes over your sound card and breaks regular sound servers. ie, no more jackd etc there are library conflicts. it instead replaces all of these, i spent some hours getting sound out of my browser cuz of this. but its cool when you get it to work.

[So far] I find no human-friendly interface for controlling pipewire.

qwgraph perhaps? Maybe I can find a link via The Evil Google – but not, apparently the lame duckduck. Could you send a link for that download?

Um, that search sends me to “qpwgraph”! Okay, something to try!

I now have qpwgraph 0.3.7; it looks good but is only showing me midi sources/sinks.

To show audio nodes? Do I need a later version, or merely to eliminate conflicting packages?

No you should just be able to output to jack or pulse like you normally do, as long as packages and modules are configured right (pipewire-jack/pipewire-pulse)

You will also gain the ability for pulse applications to be shown in the patch window

Also yes if you have old jackd or old pulse those need removed you can use qjackctl but it will be using pipewire’s jack, not jackd

Also it does have RT kernel functions

Yes, it’s working! (& now to listen to some things…)

Yay

Hopefully this helps someone else as well, like I said it took some time to fix my audio. Really great once it works

There’s an ubuntu package for the qpwgraph program. Then the first 3 steps here work to replace pulseaudio, & the resulting sound is great already!
https://ubuntuhandbook.org/index.php/2022/04/pipewire-replace-pulseaudio-ubuntu-2204/

I’ll finish the rest later, thanks!!!