You are here

pulseaudio on top of jackd

Hello Rui Nuno

I have just installed the latest pulseaudio release (1.1) on my fedora 15 x86_64 based laptop as it has a better emulation of alsa and it is now possible to route alsa only apps like sunvox into qtractor/ardour.

To do this I needed the four scripts listed at the bottom of this e-mail.

I used Qjackctl to run the scripts with the following entries in the options tab of the settings dialogue:

Execute script on Startup: /home/username/.scripts/ &
Execute script after Startup: /home/username/.scripts/ & a2jmidid -e &
Execute script on Shutdown: /home/username/.scripts/ & killall a2jmidid &
Execute script after Shutdown: /home/username/.scripts/ &

Would it possible to integrate these actions into Qjackctl with a single check-box labelled something like "run pulseaudio on top of jack"?

Also, is there a better way to control a2jmidid, I notice that it now has dbus support?

Regards, Simon
pacmd suspend true
pactl load-module module-jack-sink channels=2
pactl load-module module-jack-source channels=2
pacmd set-default-sink jack_out
pacmd set-default-source jack_in
SINKID=$(pactl list | grep -B 1 "Name: module-jack-sink" | grep Module | sed 's/[^0-9]//g')
SOURCEID=$(pactl list | grep -B 1 "Name: module-jack-source" | grep Module | sed 's/[^0-9]//g')
pactl unload-module $SINKID
pactl unload-module $SOURCEID
sleep 5
pacmd suspend false

rncbc's picture

thanks for the report.

however personally, i don't run pulseaudio on any of my boxes, so i can't testify how good are the above scripts.

i just hope they are helpful for others instead ;)


I have QjackCtl installed on my Ubuntu system, and it works very nicely with Pulseaudio: it suspends PA at startup and re-enables it again, when I close it. Maybe you should contact Ubuntu/Debian developers and suggest that they integrate your scripts to QjackCtl somehow? Not sure if it's good idea tough... I'd like to see this kind of features rather upstream than in distribution packages.

Add new comment