source: multimedia/libdriv/pulseaudio.xml@ 048071e

11.3 12.0 12.1 gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 048071e was 75b1a338, checked in by Xi Ruoyao <xry111@…>, 19 months ago

Update more URLs to use https

Mostly plain http -> https replace, if https works. If there is a HTTP
redirection, use the redirect target (unless it's a mirror or l10n like
"https://kde.org/zh-cn/").

Some non-trivial change:

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