Updated WalkThrough_User_PulseOnJack (markdown)
This commit is contained in:
parent
0506cfa3d5
commit
232ea4b4c4
|
@ -1,65 +1,66 @@
|
|||
# Running PulseAudio on top of JACK
|
||||
|
||||
If you intend to use consumer applications like Flash or media players in your JACK setup, one possible solution is to use PulseAudio as an intermediate layer for all these non-JACKified programs. Basically, it boils down to the following:
|
||||
|
||||
1. Redirect all ALSA output to PulseAudio
|
||||
1. Redirect PulseAudio to JACK
|
||||
|
||||
|
||||
## Redirecting ALSA to PulseAudio
|
||||
|
||||
Use the following settings in /etc/asound.conf (or $HOME/.asoundrc)
|
||||
|
||||
|
||||
pcm.pulse {
|
||||
type pulse
|
||||
}
|
||||
|
||||
ctl.pulse {
|
||||
type pulse
|
||||
}
|
||||
|
||||
pcm.!default {
|
||||
type pulse
|
||||
}
|
||||
ctl.!default {
|
||||
type pulse
|
||||
}
|
||||
|
||||
|
||||
|
||||
## Redirecting PulseAudio to JACK
|
||||
On Debian-like systems, be sure to install *pulseaudio-module-jack*. (TODO: Add information about Fedora, OpenSuSE and the lot)
|
||||
|
||||
Then, use the following configuration if you intend to run jackd all the time:
|
||||
|
||||
*~/.pulse/default.pa*:
|
||||
|
||||
|
||||
load-module module-native-protocol-unix
|
||||
load-module module-jack-sink channels=2
|
||||
load-module module-jack-source channels=2
|
||||
load-module module-null-sink
|
||||
load-module module-stream-restore
|
||||
load-module module-rescue-streams
|
||||
load-module module-always-sink
|
||||
load-module module-suspend-on-idle
|
||||
set-default-sink jack_out
|
||||
set-default-source jack_in
|
||||
|
||||
|
||||
The following isn't strictly necessary but might be useful. *~/.pulse/daemon.conf*:
|
||||
|
||||
default-sample-format = float32le
|
||||
default-sample-rate = 48000
|
||||
realtime-scheduling = yes
|
||||
exit-idle-time = -1
|
||||
|
||||
|
||||
If you're using qjackctl as a launcher for jackd.
|
||||
|
||||
in settings options add a post startup script like this:
|
||||
|
||||
|
||||
pactl load-module module-jack-sink channels=2; pactl load-module module-jack-source channels=2; pacmd set-default-sink jack_out
|
||||
|
||||
# Running PulseAudio on top of JACK
|
||||
|
||||
If you intend to use consumer applications like Flash or media players in your JACK setup, one possible solution is to use PulseAudio as an intermediate layer for all these non-JACKified programs. Basically, it boils down to the following:
|
||||
|
||||
1. Redirect all ALSA output to PulseAudio
|
||||
1. Redirect PulseAudio to JACK
|
||||
|
||||
Warning: If you follow this setup there is no control with qjackctl. Any settings there will have no effect. You will have to make changes to the configuration with jack_control. jack_control has no man page, try jack_control --help.
|
||||
|
||||
## Redirecting ALSA to PulseAudio
|
||||
|
||||
Use the following settings in /etc/asound.conf (or $HOME/.asoundrc)
|
||||
|
||||
|
||||
pcm.pulse {
|
||||
type pulse
|
||||
}
|
||||
|
||||
ctl.pulse {
|
||||
type pulse
|
||||
}
|
||||
|
||||
pcm.!default {
|
||||
type pulse
|
||||
}
|
||||
ctl.!default {
|
||||
type pulse
|
||||
}
|
||||
|
||||
|
||||
|
||||
## Redirecting PulseAudio to JACK
|
||||
On Debian-like systems, be sure to install *pulseaudio-module-jack*. (TODO: Add information about Fedora, OpenSuSE and the lot)
|
||||
|
||||
Then, use the following configuration if you intend to run jackd all the time:
|
||||
|
||||
*~/.pulse/default.pa*:
|
||||
|
||||
|
||||
load-module module-native-protocol-unix
|
||||
load-module module-jack-sink channels=2
|
||||
load-module module-jack-source channels=2
|
||||
load-module module-null-sink
|
||||
load-module module-stream-restore
|
||||
load-module module-rescue-streams
|
||||
load-module module-always-sink
|
||||
load-module module-suspend-on-idle
|
||||
set-default-sink jack_out
|
||||
set-default-source jack_in
|
||||
|
||||
|
||||
The following isn't strictly necessary but might be useful. *~/.pulse/daemon.conf*:
|
||||
|
||||
default-sample-format = float32le
|
||||
default-sample-rate = 48000
|
||||
realtime-scheduling = yes
|
||||
exit-idle-time = -1
|
||||
|
||||
|
||||
If you're using qjackctl as a launcher for jackd.
|
||||
|
||||
in settings options add a post startup script like this:
|
||||
|
||||
|
||||
pactl load-module module-jack-sink channels=2; pactl load-module module-jack-source channels=2; pacmd set-default-sink jack_out
|
||||
|
||||
|
|
Loading…
Reference in New Issue