source: multimedia/libdriv/pulseaudio.xml@ b7a66395

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b7a66395 was 94b42903, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Archive openssl-1.1.x. Moved to LFS.
Update to v4l-utils-1.14.2.
Update to vlc-3.0.0.

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

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