From Fedora Project Wiki
m (→‎How to Remove PulseAudio: added admonition)
m (→‎Integrating PulseAudio with JACK: changed list to HTML formatting)
Line 6: Line 6:


== Integrating PulseAudio with JACK ==
== Integrating PulseAudio with JACK ==
# Run <code>su -c 'yum install pulseaudio-module-jack'</code>
<ol>
# edit '/etc/pulse/default.pa' to add:
<li>Run <code>su -c 'yum install pulseaudio-module-jack'</code></li>
<li> edit '/etc/pulse/default.pa' to add:
<pre>load-module module-jack-sink
<pre>load-module module-jack-sink
load-module module-jack-source
load-module module-jack-source


How do I keep the numbers from resetting after this block of text?</pre>
How do I keep the numbers from resetting after this block of text?</pre>
#* I did it just underneath the commented-out #load-module module-alsa-sink, etc.
I did it just underneath the commented-out #load-module module-alsa-sink, etc.</li>
# Restart PulseAudio (run 'killall pulseaudio') OR (restart the computer)
<li>Restart PulseAudio (run 'killall pulseaudio') OR (restart the computer)</li>
# Confirm that it works by opening QjackCtl
<li>Confirm that it works by opening QjackCtl
## The display should already say "Active"
<ol><li>The display should already say "Active"</li>
## In the "Connect" window, on the 'Audio' tab, there should be PulseAudio devices on each side, and they should be connected to "system" on the other side.
    <li>In the "Connect" window, on the 'Audio' tab, there should be PulseAudio devices on each side, and they should be connected to "system" on the other side.</li></ol></li>
# Open QjackCtl's "Setup" window, then go to 'Options' tab, then uncheck "Execute script after Shutdown: killall jackd", so that JACK remains running, for use with PulseAudio, after QjackCtl is closed.
<li>Open QjackCtl's "Setup" window, then go to 'Options' tab, then uncheck "Execute script after Shutdown: killall jackd", so that JACK remains running, for use with PulseAudio, after QjackCtl is closed.</li>
# When PulseAudio starts JACK, it uses the the command found in <code>~/.jackdrc</code>, and QjackCtl automatically updates that (if it doesn't then edit it yourself).  This file is a replication of the command that would be run from the shell.
<li>When PulseAudio starts JACK, it uses the the command found in <code>~/.jackdrc</code>, and QjackCtl automatically updates that (if it doesn't then edit it yourself).  This file is a replication of the command that would be run from the shell.</li>
# If you use a very high sample rate, then PulseAudio uses a lot of CPU power.
<li>If you use a very high sample rate, then PulseAudio uses a lot of CPU power.</li>
</ol>


== How to Remove PulseAudio ==
== How to Remove PulseAudio ==

Revision as of 04:59, 14 June 2010

What PulseAudio Is, and Why It Exists

(no algorithms)

Knowing When to Use PulseAudio

(no algorithms)

Integrating PulseAudio with JACK

  1. Run su -c 'yum install pulseaudio-module-jack'
  2. edit '/etc/pulse/default.pa' to add:
    load-module module-jack-sink
    load-module module-jack-source
    
    How do I keep the numbers from resetting after this block of text?
    I did it just underneath the commented-out #load-module module-alsa-sink, etc.
  3. Restart PulseAudio (run 'killall pulseaudio') OR (restart the computer)
  4. Confirm that it works by opening QjackCtl
    1. The display should already say "Active"
    2. In the "Connect" window, on the 'Audio' tab, there should be PulseAudio devices on each side, and they should be connected to "system" on the other side.
  5. Open QjackCtl's "Setup" window, then go to 'Options' tab, then uncheck "Execute script after Shutdown: killall jackd", so that JACK remains running, for use with PulseAudio, after QjackCtl is closed.
  6. When PulseAudio starts JACK, it uses the the command found in ~/.jackdrc, and QjackCtl automatically updates that (if it doesn't then edit it yourself). This file is a replication of the command that would be run from the shell.
  7. If you use a very high sample rate, then PulseAudio uses a lot of CPU power.

How to Remove PulseAudio

Stop (medium size).png
Doing This Will Damage Your System
These instructions are not ready for the big-time. If you just happened to find this page by accident, then do yourself a favour and don't follow these instructions.
  • warn of the dangers
  • list reasons why this might be done (i.e. if you have an audio-production-only machine)
  1. "in sound preferences select 'no sounds'"
  2. "in gstreamer-properties, setup specific ALSA devices"
  3. run su -c 'yum remove pulseaudio'
  4. Check that it's not going to remove lots of useful things.
    • pulls out alsa-plugins-pulseaudio, kde-settings-pulseaudio, pulseaudio-module-bluetooth, pulseaudio-module-x11 on hp-fedora
  5. When it's finished, restart the computer.
  6. PulseAudio will no longer run. To verify this, run 'ps aux | grep pulseaudio' and see that only one line of output will be given, and that it says "grep pulseaudio" (this is the command that you just ran)

Reconfigure your audio applications

  1. If you're using JACK, then just do it with JACK.
  2. Make the file '~/.asoundrc' as below
    1. in the 'slave' section, what comes after 'pcm' should be found out from 'cat /proc/asound/cards'
    2. you can use the typical hw:0,0 notation if you wish, but hw:IXP is more robust, because it cannot refer to another soundcard
  3. If you're using KDE and Phonon, then you'll need to use KDE's "System Settings" application, under "Multimedia"
    1. open "System Settings"
    2. select "Multimedia"
    3. set the Output Device priorities as you wish - use the "Test" button to ensure that the device works
    4. if you want a single device setup to apply to all categories, then use the "Apply Device List To..." button
    5. you'll need to use KMix to reset the volume levels (see 'Settings > Configure Channels' if needed)