source: multimedia/libdriv/pulseaudio.xml@ 4b1b99e8

elogind
Last change on this file since 4b1b99e8 was 4b1b99e8, checked in by DJ Lucas <dj@…>, 5 years ago

Merge to HEAD 21160.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/BOOK-elogind@21161 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 18.2 KB
RevLine 
[cff37d6]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[f6aa5d4]7 <!ENTITY pulseaudio-download-http
[8dfc5c3]8 "https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-&pulseaudio-version;.tar.xz">
[cff37d6]9 <!ENTITY pulseaudio-download-ftp " ">
[2f461be]10 <!ENTITY pulseaudio-md5sum "c42f1f1465e8df9859d023dc184734bf">
[96f2797]11 <!ENTITY pulseaudio-size "1.6 MB">
[2f461be]12 <!ENTITY pulseaudio-buildsize "112 MB (add 2 MB for tests)">
13 <!ENTITY pulseaudio-time "1.2 SBU (add 0.7 SBU for tests)">
[cff37d6]14]>
15
16<sect1 id="pulseaudio" xreflabel="PulseAudio-&pulseaudio-version;">
17 <?dbhtml filename="pulseaudio.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>PulseAudio-&pulseaudio-version;</title>
25
26 <indexterm zone="pulseaudio">
27 <primary sortas="a-PulseAudio">PulseAudio</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to PulseAudio</title>
32
[c479d83d]33 <para>
[a161de9]34 <application>PulseAudio</application> is a sound system for POSIX OSes,
35 meaning that it is a proxy for sound applications. It allows you to do
[0956cf1]36 advanced operations on your sound data as it passes between your
37 application and your hardware. Things like transferring the audio to a
38 different machine, changing the sample format or channel count and mixing
39 several sounds into one are easily achieved using a sound server.
[c479d83d]40 </para>
[cff37d6]41
[4b1b99e8]42 &lfs84_checked;
[cff37d6]43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
[c479d83d]47 <para>
48 Download (HTTP): <ulink url="&pulseaudio-download-http;"/>
49 </para>
[cff37d6]50 </listitem>
51 <listitem>
[c479d83d]52 <para>
53 Download (FTP): <ulink url="&pulseaudio-download-ftp;"/>
54 </para>
[cff37d6]55 </listitem>
56 <listitem>
[c479d83d]57 <para>
58 Download MD5 sum: &pulseaudio-md5sum;
59 </para>
[cff37d6]60 </listitem>
61 <listitem>
[c479d83d]62 <para>
63 Download size: &pulseaudio-size;
64 </para>
[cff37d6]65 </listitem>
66 <listitem>
[c479d83d]67 <para>
68 Estimated disk space required: &pulseaudio-buildsize;
69 </para>
[cff37d6]70 </listitem>
71 <listitem>
[c479d83d]72 <para>
73 Estimated build time: &pulseaudio-time;
74 </para>
[cff37d6]75 </listitem>
76 </itemizedlist>
77
[cf4e047]78 <bridgehead renderas="sect3" revision="sysv">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact" revision="sysv">
[a3f2e9cc]80 <listitem>
81 <para>
[cf4e047]82 Required patch:
83 <ulink url="&patch-root;/pulseaudio-&pulseaudio-version;-elogind-1.patch"/>
[a3f2e9cc]84 </para>
85 </listitem>
[cf4e047]86 </itemizedlist>
[a3f2e9cc]87
[cff37d6]88 <bridgehead renderas="sect3">PulseAudio Dependencies</bridgehead>
89
90 <bridgehead renderas="sect4">Required</bridgehead>
[c479d83d]91 <para role="required">
[adf6dd9a]92 <xref linkend="libsndfile"/>
[c479d83d]93 </para>
[cff37d6]94
95 <bridgehead renderas="sect4">Recommended</bridgehead>
[c479d83d]96 <para role="recommended">
97 <xref linkend="alsa-lib"/>,
[54666831]98 <xref linkend="dbus"/>,
[cf4e047]99 <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
[88136e4d]100 <xref linkend="glib2"/>,
[56605b9]101 <xref linkend="libcap-pam"/>,
[d835b55]102 <xref linkend="speex"/> and
[88136e4d]103 <xref linkend="xorg7-lib"/>
[250cf69]104 </para>
105
[cff37d6]106 <bridgehead renderas="sect4">Optional</bridgehead>
[ff43ebb]107 <para role="optional">
[c479d83d]108 <xref linkend="avahi"/>,
[576b3dd]109 <xref linkend="bluez"/>,
[0e6052db]110 <xref linkend="fftw"/>,
[88136e4d]111 <xref linkend="GConf"/>,
112 <xref linkend="gtk3"/>,
[758637c]113 <xref linkend="libsamplerate"/>,
[98e2adf]114 <xref linkend="sbc"/> (Bluetooth support),
115 <xref linkend="valgrind"/>,
116 <ulink url="http://www.jackaudio.org/">JACK</ulink>,
[ded78c6]117 <ulink url="http://0pointer.de/lennart/projects/libasyncns/">libasyncns</ulink>,
[c479d83d]118 <ulink url="http://www.lirc.org/">LIRC</ulink>,
[d42f02c6]119 <ulink url="http://gstreamer.freedesktop.org/src/orc/">ORC</ulink>,
[2f461be]120 <ulink url="https://sourceforge.net/projects/soxr/">soxr</ulink>,
[d835b55]121 <ulink url="http://tdb.samba.org/">TDB</ulink>,
122 <ulink url="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/">
123 WebRTC AudioProcessing</ulink> and
[d42f02c6]124 <ulink url="http://www.xenproject.org/">XEN</ulink>
[c479d83d]125 </para>
[88136e4d]126
[cff37d6]127 <para condition="html" role="usernotes">User Notes:
[6f57c53]128 <ulink url="&blfs-wiki;/pulseaudio"/>
129 </para>
[cff37d6]130 </sect2>
131
132 <sect2 role="installation">
133 <title>Installation of PulseAudio</title>
134
[cf4e047]135 <para revision="sysv">
136 If building with elogind, apply a patch to enable it:
137 </para>
138
139<screen revision="sysv"><userinput>patch -Np1 -i ../pulseaudio-&pulseaudio-version;-elogind-1.patch &amp;&amp;
140AUTOPOINT='intltoolize --automake --copy' autoreconf -fiv</userinput></screen>
141
[c479d83d]142 <para>
143 Install <application>PulseAudio</application> by running the following
144 commands:
145 </para>
[cff37d6]146
[2f461be]147<!--<screen><userinput>patch -Np1 -i ../pulseaudio-&pulseaudio-version;-glibc_2.27_fix-1.patch &amp;&amp;
[a3f2e9cc]148
[2f461be]149AUTOPOINT='intltoolize \-\-automake \-\-copy' autoreconf -fiv &amp;&amp;-->
150<screen><userinput>./configure --prefix=/usr \
[758637c]151 --sysconfdir=/etc \
152 --localstatedir=/var \
153 --disable-bluez4 \
[576b3dd]154 --disable-bluez5 \
[5622b1b7]155 --disable-rpath &amp;&amp;
[cff37d6]156make</userinput></screen>
157
[c479d83d]158 <para>
159 To test the results, issue: <command>make check</command>.
[2f461be]160 The volume-test may fail for unknown reasons.
161 <!-- apparently, the max deviation is higher than expected, i.e. assertion
162 failed, result of 280 > 253 : but it seems to work -->
[c479d83d]163 </para>
[cff37d6]164
[c479d83d]165 <para>
166 Now, as the <systemitem class="username">root</systemitem> user:
167 </para>
[cff37d6]168
169<screen role="root"><userinput>make install</userinput></screen>
170
[88136e4d]171 <!-- http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ -->
172 <para>
173 While still as the <systemitem class="username">root</systemitem>
174 user, remove the <application>D-Bus</application> configuration file
175 for the system wide daemon to avoid creating unnecessary system
[e7c2eeb]176 users and groups:
[88136e4d]177 </para>
178
[96f2797]179<screen role="root"><userinput>rm -fv /etc/dbus-1/system.d/pulseaudio-system.conf</userinput></screen>
[88136e4d]180
[cff37d6]181 </sect2>
182
183 <sect2 role="commands">
184 <title>Command Explanations</title>
[65b99b9]185 <!--
[a3f2e9cc]186 <para>
187 <command>AUTOPOINT='intltoolize ...</command>:
[65b99b9]188 <command>autoreconf</command> needs to be run after applying the
[a3f2e9cc]189 patch. Running <command>intltoolize</command> instead of
190 <command>autopoint</command> prevents an error when running
191 <command>configure</command> afterwards.
192 </para>
[65b99b9]193 -->
[a3f2e9cc]194
[88136e4d]195 <para>
196 <parameter>--disable-bluez4</parameter>: This switch disables
197 support for <application>BlueZ</application> version 4 in favour
198 of <application>BlueZ</application> version 5 since the latter
199 also installs compatibility library for the earlier version.
200 </para>
201
[576b3dd]202 <para>
203 <parameter>--disable-bluez5</parameter>: This switch prevents
204 a runtime error if <xref linkend="dbus"/> and <xref linkend="sbc"/>
205 are both installed but <xref linkend="bluez"/> is not installed.
206 Remove this if you have installed all three packages.
207 </para>
208
[88136e4d]209 <para>
210 <parameter>--disable-rpath</parameter>: This switch prevents
211 linker from adding a hardcoded runtime path to the installed
212 programs and libraries.
213 </para>
214
[250cf69]215 </sect2>
[cff37d6]216
[e5d2270e]217 <sect2 role="configuration">
218 <title>Configuring PulseAudio</title>
219
220 <sect3 id="pulseaudio-config">
221 <title>Config Files</title>
222 <para>
223 There are system wide configuration files:
224 <filename>/etc/pulse/daemon.conf</filename>,
225 <filename>/etc/pulse/client.conf</filename>,
226 <filename>/etc/pulse/default.pa</filename>, and user configuration
227 files with the same names in
228 <filename class="directory">~/.config/pulse</filename>. User
229 configuration files take precedence over system wide ones.
230 </para>
231
232 <indexterm zone="pulseaudio pulseaudio-config">
233 <primary sortas="e-AA.config-pulse">~/.config/pulse</primary>
234 </indexterm>
235
236 <indexterm zone="pulseaudio pulseaudio-config">
237 <primary
238 sortas="e-etc-pulse-daemon.conf">/etc/pulse/daemon.conf</primary>
239 </indexterm>
240
241 <indexterm zone="pulseaudio pulseaudio-config">
242 <primary
243 sortas="e-etc-pulse-client.conf">/etc/pulse/client.conf</primary>
244 </indexterm>
245
246 <indexterm zone="pulseaudio pulseaudio-config">
247 <primary
248 sortas="e-etc-pulse-default.pa">/etc/pulse/default.pa</primary>
249 </indexterm>
250 </sect3>
251
252 <sect3><title>Configuration Information</title>
253
254 <para>
[03de2e3]255 The default configuration files allow setting up a working installation.
256 However, a reference to Console-Kit needs to be removed if it is
[e5d2270e]257 not installed. For example, issue the following command as the
258 <systemitem class="username">root</systemitem> user:
259 </para>
260
[03de2e3]261<screen role="root"><userinput>sed -i '/load-module module-console-kit/s/^/#/' /etc/pulse/default.pa</userinput></screen>
[e5d2270e]262
263 <para>
[03de2e3]264 You may also have to configure the audio system. You can start
[e5d2270e]265 <application>pulseaudio</application> in command line mode using
[03de2e3]266 <command>pulseaudio -C</command> and then list various
267 information and change settings. See
[e5d2270e]268 <command>man pulse-cli-syntax</command>.
269 </para>
[a8f5df3]270
271 <para>
272 If <application>pulseaudio</application> was working but you no-longer
273 have sound, after checking for hardware issues (speakers or headphones
274 not connected, external amplifier not connected) you may need to fix it.
275 </para>
276
277 <para>
278 One suggestion is to close the application, such as
279 <application>firefox</application> where sound has stopped working, then
280 run: <command>pactl list short sinks</command> followed by:
281 <command>pacmd set-default-sink &lt;sink #&gt;</command> and then
282 restart the application.
283 </para>
284
285 <para>
286 If that does not work, a more drastic approach often works. After closing
287 the application, close pulseaudio, either using <command>pulseaudio
288 --kill</command> or, if that fails, <command>killall -KILL
289 pulseaudio</command> and then <command>rm -rf
290 ~/.config/pulse/*</command> (and perhaps also
291 <command>rm -rf ~/.pulse/*</command> if you have used a very old version
292 of pulse on this machine, then run <command>pulseaudio
293 --verbose</command> to restart it. If the daemon starts, restart the
294 application. See <command>man pulseaudio</command> for more options.
295 </para>
296
[e5d2270e]297 </sect3>
298 </sect2>
299
[cff37d6]300 <sect2 role="content">
301 <title>Contents</title>
302
303 <segmentedlist>
304 <segtitle>Installed Programs</segtitle>
305 <segtitle>Installed Libraries</segtitle>
306 <segtitle>Installed Directories</segtitle>
307
308 <seglistitem>
[c479d83d]309 <seg>
[03de2e3]310 esdcompat, pacat, pacmd, pactl, padsp, pamon (symlink to pacat),
[c870dc3]311 paplay (symlink to pacat), parec (symlink to pacat),
[03de2e3]312 parecord (symlink to pacat), pasuspender,
[5622b1b7]313 pax11publish, pulseaudio, and
[e5d2270e]314 <!-- it looks like the equalizer needs FFTW: qpaeq, -->
[5622b1b7]315 start-pulseaudio-x11
[c479d83d]316 </seg>
317 <seg>
[d42f02c6]318 libpulse.so
[96f2797]319 libpulse-mainloop-glib.so,
320 libpulse-simple.so,
321 libpulsecommon-&pulseaudio-major-version;.so,
322 libpulsecore-&pulseaudio-major-version;.so, and
323 libpulsedsp.so
324
[c479d83d]325 </seg>
326 <seg>
[4b141a4]327 /etc/pulse,
328 /usr/include/pulse,
[5622b1b7]329 /usr/lib/cmake/PulseAudio,
[d42f02c6]330 /usr/lib/{pulseaudio,pulse-&pulseaudio-major-version;},
[c870dc3]331 /usr/libexec/pulse, and
[4b141a4]332 /usr/share/pulseaudio
[c479d83d]333 </seg>
[cff37d6]334 </seglistitem>
335 </segmentedlist>
336
337 <variablelist>
338 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
339 <?dbfo list-presentation="list"?>
340 <?dbhtml list-presentation="table"?>
341
342 <varlistentry id="esdcompat">
343 <term><command>esdcompat</command></term>
344 <listitem>
[c479d83d]345 <para>
346 is the <application>PulseAudio</application> ESD wrapper script.
347 </para>
[cff37d6]348 <indexterm zone="pulseaudio esdcompat">
349 <primary sortas="b-esdcompat">esdcompat</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="pacat">
355 <term><command>pacat</command></term>
356 <listitem>
[c479d83d]357 <para>
[0956cf1]358 plays back or records raw or encoded audio streams on a
[c479d83d]359 <application>PulseAudio</application> sound server.
360 </para>
[cff37d6]361 <indexterm zone="pulseaudio pacat">
362 <primary sortas="b-pacat">pacat</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 <varlistentry id="pacmd">
368 <term><command>pacmd</command></term>
369 <listitem>
[c479d83d]370 <para>
371 is a tool used to reconfigure a <application>PulseAudio</application>
372 sound server during runtime.
373 </para>
[cff37d6]374 <indexterm zone="pulseaudio pacmd">
375 <primary sortas="b-pacmd">pacmd</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
380 <varlistentry id="pactl">
381 <term><command>pactl</command></term>
382 <listitem>
[c479d83d]383 <para>
[a161de9]384 is used to control a running <application>PulseAudio</application>
[c479d83d]385 sound server.
386 </para>
[cff37d6]387 <indexterm zone="pulseaudio pactl">
388 <primary sortas="b-pactl">pactl</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
393 <varlistentry id="padsp">
394 <term><command>padsp</command></term>
395 <listitem>
[c479d83d]396 <para>
397 is the <application>PulseAudio</application> OSS Wrapper.
398 </para>
[cff37d6]399 <indexterm zone="pulseaudio padsp">
400 <primary sortas="b-padsp">padsp</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
[250cf69]405 <varlistentry id="pamon">
[cff37d6]406 <term><command>pamon</command></term>
407 <listitem>
[c479d83d]408 <para>
[a161de9]409 is a symbolic link to <command>pacat</command>.
[c479d83d]410 </para>
[cff37d6]411 <indexterm zone="pulseaudio pamon">
412 <primary sortas="b-pamon">pamon</primary>
413 </indexterm>
414 </listitem>
[250cf69]415 </varlistentry>
[cff37d6]416
417 <varlistentry id="paplay">
418 <term><command>paplay</command></term>
419 <listitem>
[c479d83d]420 <para>
[a161de9]421 is used to play audio files on a
[c479d83d]422 <application>PulseAudio</application> sound server.
423 </para>
[cff37d6]424 <indexterm zone="pulseaudio paplay">
425 <primary sortas="b-paplay">paplay</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
429
[250cf69]430 <varlistentry id="parec">
[cff37d6]431 <term><command>parec</command></term>
432 <listitem>
[c479d83d]433 <para>
[a161de9]434 is a symbolic link to <command>pacat</command>.
[c479d83d]435 </para>
[cff37d6]436 <indexterm zone="pulseaudio parec">
437 <primary sortas="b-parec">parec</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
442 <varlistentry id="parecord">
443 <term><command>parecord</command></term>
444 <listitem>
[c479d83d]445 <para>
[a161de9]446 is a symbolic link to <command>pacat</command>.
[c479d83d]447 </para>
[cff37d6]448 <indexterm zone="pulseaudio parecord">
449 <primary sortas="b-parecord">parecord</primary>
450 </indexterm>
451 </listitem>
[250cf69]452 </varlistentry>
[cff37d6]453
454 <varlistentry id="pasuspender">
455 <term><command>pasuspender</command></term>
456 <listitem>
[c479d83d]457 <para>
458 is a tool that can be used to tell a local
459 <application>PulseAudio</application> sound server to temporarily
460 suspend access to the audio devices, to allow other applications
[a161de9]461 to access them directly.
[c479d83d]462 </para>
[cff37d6]463 <indexterm zone="pulseaudio pasuspender">
464 <primary sortas="b-pasuspender">pasuspender</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
[250cf69]469 <varlistentry id="pax11publish">
[cff37d6]470 <term><command>pax11publish</command></term>
471 <listitem>
[c479d83d]472 <para>
473 is the <application>PulseAudio</application>
474 X11 Credential Utility.
475 </para>
[cff37d6]476 <indexterm zone="pulseaudio pax11publish">
477 <primary sortas="b-pax11publish">pax11publish</primary>
478 </indexterm>
479 </listitem>
[250cf69]480 </varlistentry>
[cff37d6]481
482 <varlistentry id="pulseaudio-prog">
[250cf69]483 <term><command>pulseaudio</command></term>
[cff37d6]484 <listitem>
[c479d83d]485 <para>
486 is a networked low-latency sound server for Linux.
487 </para>
[cff37d6]488 <indexterm zone="pulseaudio pulseaudio-prog">
[c479d83d]489 <primary sortas="b-pulseaudio">pulseaudio</primary>
[cff37d6]490 </indexterm>
491 </listitem>
492 </varlistentry>
493
[e5d2270e]494<!-- only installed if FFTW is present
[250cf69]495 <varlistentry id="qpaeq">
496 <term><command>qpaeq</command></term>
497 <listitem>
[c479d83d]498 <para>
499 is an equalizer interface for
500 <application>PulseAudio</application> equalizer sinks.
501 </para>
[250cf69]502 <indexterm zone="pulseaudio qpaeq">
503 <primary sortas="b-qpaeq">qpaeq</primary>
504 </indexterm>
505 </listitem>
506 </varlistentry>
[e5d2270e]507-->
[03de2e3]508<!-- Not found in PA 7.0
[758637c]509 <varlistentry id="start-pulseaudio-kde">
510 <term><command>start-pulseaudio-kde</command></term>
511 <listitem>
512 <para>
513 Starts <application>PulseAudio</application> and loads
514 module-device-manager to use KDE routing policies.
515 </para>
516 <indexterm zone="pulseaudio start-pulseaudio-kde">
517 <primary sortas="b-start-pulseaudio-kde">start-pulseaudio-kde</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
[03de2e3]521-->
[cff37d6]522 <varlistentry id="start-pulseaudio-x11">
523 <term><command>start-pulseaudio-x11</command></term>
524 <listitem>
[c479d83d]525 <para>
[0956cf1]526 starts <application>PulseAudio</application> and registers it to
[c479d83d]527 the X11 session manager.
528 </para>
[cff37d6]529 <indexterm zone="pulseaudio start-pulseaudio-x11">
530 <primary sortas="b-start-pulseaudio-x11">start-pulseaudio-x11</primary>
531 </indexterm>
532 </listitem>
[250cf69]533 </varlistentry>
[cff37d6]534
535 </variablelist>
536
537 </sect2>
538
539</sect1>
Note: See TracBrowser for help on using the repository browser.