Why do this? Two reasons:
1) Many of us use JACK for low-latency audio work, but it's annoying to have to turn it on or off to have to allow regular Ubuntu applications to work. It's even more annoying that both can't normally work together -- either JACK or PulseAudio must take control of the sound control. This method allow JACK to do, and PulseAudio just routes to JACK.
2) JACK is kinda super awesome. By routing PulseAudio through it, your regular Ubuntu sound application suddenly get super powers.
Pretty easy to do! (Well, we count our blessings in Linux...)
1. DYNAMICALLY
You need the PulseAudio utilities and JACK sink:
And then run this to get PulseAudio connected to JACK:Code:sudo aptitude install pulseaudio-utils pulseaudio-module-jack
Now, go to Ubuntu's sound preferences, and you'll see "Jack sink" in the output tab.Code:pactl load-module module-jack-sink pactl load-module module-jack-source
If you use JACK Control, you can create a script for the above and have it set up in "Execute script after Startup". Then, PulseAudio will automatically load the JACK sink when you start JACK.
2. BY DEFAULT
Edit /etc/pulse/default.pa, and add these lines:
You can test it without rebooting by restarting PulseAudio. In Ubuntu, PulseAudio is started in the user session, not as a system daemon. To restart it:Code:load-module module-jack-source load-module module-jack-sink
Code:pulseaudio --kill pulseaudio --start



Adv Reply


Bookmarks