TUTORIAL: How to run Jack & Pulseaudio at the same time
(Is this the correct place for this kind of thing? hopefully)
Anyway, I couldn't find any direct tutorials on this, so I figured it out from bits and pieces I found on the web and simple logic. Pardon my lack of references, I can't remember where I found most of this information. If I recall, most of it's from the same site, if anyone knows which, please post a link. I don't approve of plagiarism haha.
Basically, what you'll be doing is routing PulseAudio through Jack.
I'm running Ubuntu 11.04, try this on other distros at your own risk.
If you're like me, and replaced pulseaudio with alsa, you're gonna want to undo that.
I don't know exactly what you did if you did it, so I'll leave that part to you.
First off, install QJackCtl (Available in Ubuntu Software Center) if you haven't already.
Then install pulseaudio and pulseaudio-module-jack if you haven't already.
Next, open a terminal instance and type the following:
sudo apt-get install pulseaudio pulseaudio-module-jack
Open up another terminal instance and type a similar thing:
sudo gedit /etc/asound.conf
And copy and paste:
sudo gedit $HOME/.asoundrc
Save, and exit.
Now, in the terminal:
And add the following:
sudo gedit ~/.pulse/default.pa
load-module module-jack-sink channels=2
load-module module-jack-source channels=2
sudo gedit ~/.pulse/daemon.conf
Save and exit.
default-sample-format = float32le
default-sample-rate = 48000
realtime-scheduling = yes
exit-idle-time = -1
Now, open QJackCtl and open the Settings,
Change the sample rate to 44100,
Go to the MISC tab,
Check the box to start the server on application startup.
Go to the OPTIONS tab,
Check "Execute script after startup"
Copy and paste the following:
Check "Execute script after shutdown"
pactl load-module module-jack-sink channels=2; pactl load-module module-jack-source channels=2;pacmd set-default-sink jack_out
Now, open System > Preferences > Startup Applications
For the name, type "JackAudio"
For the command, type "qjackctl"
Make sure the command you just added is checked.
Now, make sure everything is saved and reboot to see if it's working.
The downside to this, is in a "Movie player" instance
when the song or video finishes, you need to open the QJackCtl window, click "Stop" and then "Start"
in my eyes as a linux-preferring musician: Completely worth it. It doesn't take all that long to do, and I use VLC anyway.
ENJOY! No more stopping and restarting JACK and reconfiguring audio in your DAW whenever you go from your DAW to an mp3 file and back. BE GRATEFUL.