pulseaudio on top of jackd

Forums

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/pulse-jack-pre-start.sh &
Execute script after Startup: /home/username/.scripts/pulse-jack-post-start.sh & a2jmidid -e &
Execute script on Shutdown: /home/username/.scripts/pulse-jack-pre-stop.sh & killall a2jmidid &
Execute script after Shutdown: /home/username/.scripts/pulse-jack-post-stop.sh &

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

pulse-jack-pre-start.sh
#!/bin/bash
pacmd suspend true
pulse-jack-post-start.sh
#!/bin/bash
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
pulse-jack-pre-stop.sh
#!/bin/bash
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
pulse-jack-post-stop.sh
#!/bin/bash
pacmd suspend false
Permalink

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 ;)

cheers

Permalink

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

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.