source: multimedia/libdriv/pulseaudio.xml@ 7609bf4

lazarus trunk
Last change on this file since 7609bf4 was 1241ea19, checked in by Bruce Dubbs <bdubbs@…>, 5 months ago

Tag xfce and dependencies

  • Property mode set to 100644
File size: 17.8 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[cff37d6]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 " ">
[30303f1]10 <!ENTITY pulseaudio-md5sum "c4a3596a26ff4b9dcd0c394dd1d4f8ee">
[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
[1241ea19]38 &lfs121_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"/>,
[7b8bec72]101 <ulink url="https://jackaudio.org/">JACK</ulink>,
[75b1a338]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 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of PulseAudio</title>
[e4be4bf]116<!--
[efa50b8]117 <para>
118 If <xref linkend="doxygen"/> is not installed, workaround a building
119 issue because of the changes in meson-0.57.2:
120 </para>
121
122<screen><userinput>sed '/doxygen/d' -i meson.build</userinput></screen>
[e4be4bf]123-->
[c479d83d]124 <para>
125 Install <application>PulseAudio</application> by running the following
126 commands:
127 </para>
[64596e61]128
129<screen><userinput>mkdir build &amp;&amp;
130cd build &amp;&amp;
131
[91318eb]132meson setup --prefix=/usr \
133 --buildtype=release \
134 -Ddatabase=gdbm \
135 -Ddoxygen=false \
136 -Dbluez5=disabled \
137 .. &amp;&amp;
[64596e61]138ninja</userinput></screen>
[cff37d6]139
[c479d83d]140 <para>
[64596e61]141 To test the results, issue: <command>ninja test</command>. One test
142 fails if the tests are not run as the root user, but this can be ignored.
[c479d83d]143 </para>
[cff37d6]144
[c479d83d]145 <para>
146 Now, as the <systemitem class="username">root</systemitem> user:
147 </para>
[cff37d6]148
[64596e61]149<screen role="root"><userinput>ninja install</userinput></screen>
[cff37d6]150
[88136e4d]151 <!-- http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ -->
[8558044]152 <para>Running PulseAudio as a system-wide daemon is possible but not
153 recommended. See <ulink
[ff40dcf]154 url="https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/"/>
155 for more information.
[88136e4d]156 While still as the <systemitem class="username">root</systemitem>
157 user, remove the <application>D-Bus</application> configuration file
158 for the system wide daemon to avoid creating unnecessary system
[e7c2eeb]159 users and groups:
[88136e4d]160 </para>
161
[ab6c309]162<screen role="root"><userinput>rm /usr/share/dbus-1/system.d/pulseaudio-system.conf</userinput></screen>
[88136e4d]163
[cff37d6]164 </sect2>
165 <sect2 role="commands">
166 <title>Command Explanations</title>
[88136e4d]167
[20f070d8]168 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
169 href="../../xincludes/meson-buildtype-release.xml"/>
170
[576b3dd]171 <para>
[2c1dc23]172 <parameter>-Dbluez5=disabled</parameter>: This switch prevents
[576b3dd]173 a runtime error if <xref linkend="dbus"/> and <xref linkend="sbc"/>
174 are both installed but <xref linkend="bluez"/> is not installed.
175 Remove this if you have installed all three packages.
176 </para>
[6913e834]177
178 <para>
179 <parameter>-Ddoxygen=false</parameter>: This allows the package to
180 compile if <xref linkend="doxygen"/> is not installed. Remove this
181 if you have installed this and wish to build the documentation.
182 </para>
[70e41393]183<!--
[88136e4d]184 <para>
[64596e61]185 <parameter>- -disable-rpath</parameter>: This switch prevents
[88136e4d]186 linker from adding a hardcoded runtime path to the installed
187 programs and libraries.
[70e41393]188 </para>-->
[88136e4d]189
[250cf69]190 </sect2>
[e5d2270e]191 <sect2 role="configuration">
192 <title>Configuring PulseAudio</title>
193
194 <sect3 id="pulseaudio-config">
195 <title>Config Files</title>
196 <para>
197 There are system wide configuration files:
198 <filename>/etc/pulse/daemon.conf</filename>,
199 <filename>/etc/pulse/client.conf</filename>,
200 <filename>/etc/pulse/default.pa</filename>, and user configuration
201 files with the same names in
202 <filename class="directory">~/.config/pulse</filename>. User
203 configuration files take precedence over system wide ones.
204 </para>
205
206 <indexterm zone="pulseaudio pulseaudio-config">
207 <primary sortas="e-AA.config-pulse">~/.config/pulse</primary>
208 </indexterm>
209
210 <indexterm zone="pulseaudio pulseaudio-config">
211 <primary
212 sortas="e-etc-pulse-daemon.conf">/etc/pulse/daemon.conf</primary>
213 </indexterm>
214
215 <indexterm zone="pulseaudio pulseaudio-config">
216 <primary
217 sortas="e-etc-pulse-client.conf">/etc/pulse/client.conf</primary>
218 </indexterm>
219
220 <indexterm zone="pulseaudio pulseaudio-config">
221 <primary
222 sortas="e-etc-pulse-default.pa">/etc/pulse/default.pa</primary>
223 </indexterm>
224 </sect3>
225
226 <sect3><title>Configuration Information</title>
[d8f80e9]227<!--
[e5d2270e]228 <para>
[03de2e3]229 The default configuration files allow setting up a working installation.
[d43c7a1]230 However, a reference to Console-Kit needs to be removed.
231 Issue the following command as the
[e5d2270e]232 <systemitem class="username">root</systemitem> user:
233 </para>
234
[03de2e3]235<screen role="root"><userinput>sed -i '/load-module module-console-kit/s/^/#/' /etc/pulse/default.pa</userinput></screen>
[e5d2270e]236
[d8f80e9]237 In 13.0 this is protected via .ifexists module-console-kit.so
238-->
[e5d2270e]239 <para>
[d8f80e9]240 You may have to configure the audio system. You can start
[e5d2270e]241 <application>pulseaudio</application> in command line mode using
[03de2e3]242 <command>pulseaudio -C</command> and then list various
243 information and change settings. See
[e5d2270e]244 <command>man pulse-cli-syntax</command>.
245 </para>
[a8f5df3]246
247 <para>
248 If <application>pulseaudio</application> was working but you no-longer
249 have sound, after checking for hardware issues (speakers or headphones
250 not connected, external amplifier not connected) you may need to fix it.
251 </para>
252
253 <para>
254 One suggestion is to close the application, such as
255 <application>firefox</application> where sound has stopped working, then
256 run: <command>pactl list short sinks</command> followed by:
257 <command>pacmd set-default-sink &lt;sink #&gt;</command> and then
258 restart the application.
259 </para>
260
261 <para>
262 If that does not work, a more drastic approach often works. After closing
263 the application, close pulseaudio, either using <command>pulseaudio
264 --kill</command> or, if that fails, <command>killall -KILL
265 pulseaudio</command> and then <command>rm -rf
266 ~/.config/pulse/*</command> (and perhaps also
267 <command>rm -rf ~/.pulse/*</command> if you have used a very old version
[ff40dcf]268 of pulse on this machine), then run <command>pulseaudio
[a8f5df3]269 --verbose</command> to restart it. If the daemon starts, restart the
270 application. See <command>man pulseaudio</command> for more options.
271 </para>
272
[e5d2270e]273 </sect3>
274 </sect2>
275
[cff37d6]276 <sect2 role="content">
277 <title>Contents</title>
278
279 <segmentedlist>
280 <segtitle>Installed Programs</segtitle>
281 <segtitle>Installed Libraries</segtitle>
282 <segtitle>Installed Directories</segtitle>
283
284 <seglistitem>
[c479d83d]285 <seg>
[8558044]286 <!--esdcompat,--> pacat, pacmd, pactl, padsp,
287 pamon (symlink to pacat), paplay (symlink to pacat),
288 parec (symlink to pacat), parecord (symlink to pacat), qpaeq,
[ff40dcf]289 pasuspender, pax11publish, pulseaudio, and
[e5d2270e]290 <!-- it looks like the equalizer needs FFTW: qpaeq, -->
[5622b1b7]291 start-pulseaudio-x11
[c479d83d]292 </seg>
293 <seg>
[11eb3ae5]294 libpulse.so,
[96f2797]295 libpulse-mainloop-glib.so,
296 libpulse-simple.so,
297 libpulsecommon-&pulseaudio-major-version;.so,
[8558044]298 libpulsecore-&pulseaudio-major-version;.so, and
[96f2797]299 libpulsedsp.so
[c479d83d]300 </seg>
301 <seg>
[4b141a4]302 /etc/pulse,
303 /usr/include/pulse,
[5622b1b7]304 /usr/lib/cmake/PulseAudio,
[d42f02c6]305 /usr/lib/{pulseaudio,pulse-&pulseaudio-major-version;},
[c870dc3]306 /usr/libexec/pulse, and
[4b141a4]307 /usr/share/pulseaudio
[c479d83d]308 </seg>
[cff37d6]309 </seglistitem>
310 </segmentedlist>
311
312 <variablelist>
313 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
314 <?dbfo list-presentation="list"?>
315 <?dbhtml list-presentation="table"?>
316
[ff40dcf]317<!--
[cff37d6]318 <varlistentry id="esdcompat">
319 <term><command>esdcompat</command></term>
320 <listitem>
[c479d83d]321 <para>
322 is the <application>PulseAudio</application> ESD wrapper script.
323 </para>
[cff37d6]324 <indexterm zone="pulseaudio esdcompat">
325 <primary sortas="b-esdcompat">esdcompat</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
[ff40dcf]329-->
[cff37d6]330
331 <varlistentry id="pacat">
332 <term><command>pacat</command></term>
333 <listitem>
[c479d83d]334 <para>
[0956cf1]335 plays back or records raw or encoded audio streams on a
[4c24eb0a]336 <application>PulseAudio</application> sound server
[c479d83d]337 </para>
[cff37d6]338 <indexterm zone="pulseaudio pacat">
339 <primary sortas="b-pacat">pacat</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="pacmd">
345 <term><command>pacmd</command></term>
346 <listitem>
[c479d83d]347 <para>
348 is a tool used to reconfigure a <application>PulseAudio</application>
[4c24eb0a]349 sound server during runtime
[c479d83d]350 </para>
[cff37d6]351 <indexterm zone="pulseaudio pacmd">
352 <primary sortas="b-pacmd">pacmd</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
357 <varlistentry id="pactl">
358 <term><command>pactl</command></term>
359 <listitem>
[c479d83d]360 <para>
[a161de9]361 is used to control a running <application>PulseAudio</application>
[4c24eb0a]362 sound server
[c479d83d]363 </para>
[cff37d6]364 <indexterm zone="pulseaudio pactl">
365 <primary sortas="b-pactl">pactl</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="padsp">
371 <term><command>padsp</command></term>
372 <listitem>
[c479d83d]373 <para>
[4c24eb0a]374 is the <application>PulseAudio</application> OSS Wrapper
[c479d83d]375 </para>
[cff37d6]376 <indexterm zone="pulseaudio padsp">
377 <primary sortas="b-padsp">padsp</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
[250cf69]382 <varlistentry id="pamon">
[cff37d6]383 <term><command>pamon</command></term>
384 <listitem>
[c479d83d]385 <para>
[4c24eb0a]386 is a symbolic link to <command>pacat</command>
[c479d83d]387 </para>
[cff37d6]388 <indexterm zone="pulseaudio pamon">
389 <primary sortas="b-pamon">pamon</primary>
390 </indexterm>
391 </listitem>
[250cf69]392 </varlistentry>
[cff37d6]393
394 <varlistentry id="paplay">
395 <term><command>paplay</command></term>
396 <listitem>
[c479d83d]397 <para>
[a161de9]398 is used to play audio files on a
[4c24eb0a]399 <application>PulseAudio</application> sound server
[c479d83d]400 </para>
[cff37d6]401 <indexterm zone="pulseaudio paplay">
402 <primary sortas="b-paplay">paplay</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
[250cf69]407 <varlistentry id="parec">
[cff37d6]408 <term><command>parec</command></term>
409 <listitem>
[c479d83d]410 <para>
[4c24eb0a]411 is a symbolic link to <command>pacat</command>
[c479d83d]412 </para>
[cff37d6]413 <indexterm zone="pulseaudio parec">
414 <primary sortas="b-parec">parec</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
418
419 <varlistentry id="parecord">
420 <term><command>parecord</command></term>
421 <listitem>
[c479d83d]422 <para>
[4c24eb0a]423 is a symbolic link to <command>pacat</command>
[c479d83d]424 </para>
[cff37d6]425 <indexterm zone="pulseaudio parecord">
426 <primary sortas="b-parecord">parecord</primary>
427 </indexterm>
428 </listitem>
[250cf69]429 </varlistentry>
[cff37d6]430
431 <varlistentry id="pasuspender">
432 <term><command>pasuspender</command></term>
433 <listitem>
[c479d83d]434 <para>
435 is a tool that can be used to tell a local
436 <application>PulseAudio</application> sound server to temporarily
437 suspend access to the audio devices, to allow other applications
[4c24eb0a]438 to access them directly
[c479d83d]439 </para>
[cff37d6]440 <indexterm zone="pulseaudio pasuspender">
441 <primary sortas="b-pasuspender">pasuspender</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
[250cf69]446 <varlistentry id="pax11publish">
[cff37d6]447 <term><command>pax11publish</command></term>
448 <listitem>
[c479d83d]449 <para>
450 is the <application>PulseAudio</application>
[4c24eb0a]451 X11 Credential Utility
[c479d83d]452 </para>
[cff37d6]453 <indexterm zone="pulseaudio pax11publish">
454 <primary sortas="b-pax11publish">pax11publish</primary>
455 </indexterm>
456 </listitem>
[250cf69]457 </varlistentry>
[cff37d6]458
[ff40dcf]459 <varlistentry id="pa-info">
460 <term><command>pa-info</command></term>
461 <listitem>
462 <para>
463 is a shell script that prints various information relating to the
[4c24eb0a]464 <application>Pulseaudio</application> server currently in use
[ff40dcf]465 </para>
466 <indexterm zone="pulseaudio pa-info">
467 <primary sortas="b-pa-info">pa-info</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
[cff37d6]472 <varlistentry id="pulseaudio-prog">
[250cf69]473 <term><command>pulseaudio</command></term>
[cff37d6]474 <listitem>
[c479d83d]475 <para>
[4c24eb0a]476 is a networked low-latency sound server for Linux
[c479d83d]477 </para>
[cff37d6]478 <indexterm zone="pulseaudio pulseaudio-prog">
[c479d83d]479 <primary sortas="b-pulseaudio">pulseaudio</primary>
[cff37d6]480 </indexterm>
481 </listitem>
482 </varlistentry>
483
[d8f80e9]484<!-- only installed if FFTW is present -->
[250cf69]485 <varlistentry id="qpaeq">
486 <term><command>qpaeq</command></term>
487 <listitem>
[c479d83d]488 <para>
489 is an equalizer interface for
[8558044]490 <application>PulseAudio</application> equalizer sinks
[4c24eb0a]491 (Requires <xref linkend="fftw"/> at build time)
[c479d83d]492 </para>
[250cf69]493 <indexterm zone="pulseaudio qpaeq">
494 <primary sortas="b-qpaeq">qpaeq</primary>
495 </indexterm>
496 </listitem>
497 </varlistentry>
[d8f80e9]498
[03de2e3]499<!-- Not found in PA 7.0
[758637c]500 <varlistentry id="start-pulseaudio-kde">
501 <term><command>start-pulseaudio-kde</command></term>
502 <listitem>
503 <para>
504 Starts <application>PulseAudio</application> and loads
505 module-device-manager to use KDE routing policies.
506 </para>
507 <indexterm zone="pulseaudio start-pulseaudio-kde">
508 <primary sortas="b-start-pulseaudio-kde">start-pulseaudio-kde</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
[03de2e3]512-->
[cff37d6]513 <varlistentry id="start-pulseaudio-x11">
514 <term><command>start-pulseaudio-x11</command></term>
515 <listitem>
[c479d83d]516 <para>
[0956cf1]517 starts <application>PulseAudio</application> and registers it to
[4c24eb0a]518 the X11 session manager
[c479d83d]519 </para>
[cff37d6]520 <indexterm zone="pulseaudio start-pulseaudio-x11">
521 <primary sortas="b-start-pulseaudio-x11">start-pulseaudio-x11</primary>
522 </indexterm>
523 </listitem>
[250cf69]524 </varlistentry>
[cff37d6]525
526 </variablelist>
527
528 </sect2>
529
530</sect1>
Note: See TracBrowser for help on using the repository browser.