PulseAudio

From Wikipedia, the free encyclopedia
PulseAudio
Developer(s) Lennart Poettering, Pierre Ossman, Shahms E. King, Tanu Kaskinen, Colin Guthrie
Initial release July 2004 (2004-07)
Stable release 4.0[1] / 3 June 2013 (2013-06-03)
Written in C[2]
Operating system FreeBSD, NetBSD, OpenBSD, Linux, Solaris, and Windows
Platform ARM, PPC (PowerPC), x86 / IA-32, x86-64, and MIPS architecture
Type
License GNU Lesser General Public License 2.1.[3]
Website www.freedesktop.org/wiki/Software/PulseAudio

PulseAudio is a free cross-platform network sound server, targeting mostly POSIX-compliant operating systems, released under the terms of GNU Lesser General Public License 2.1.[3] The project is now being hosted at freedesktop.org.

Design

Example of usage in GNU/Linux. The PulseAudio-daemon (called usound) has become a default component of the Linux desktop alongside the NetworkManager- and avahi- daemons
PulseAudio operational flow chart

PulseAudio is a sound server, a background process accepting sound input from one or more sources (processes or capture devices) and redirecting it to one or more sinks (sound cards, remote network PulseAudio servers, or other processes).[4]

One of the goals of PulseAudio is to reroute all sound streams through it, including those from processes that attempt to directly access the hardware (like legacy OSS applications). PulseAudio achieves this by providing adapters to applications using other audio systems, like aRts and ESD.

In a typical installation scenario under Linux, the user configures ALSA to use a virtual device provided by PulseAudio. Thus, applications using ALSA will output sound to PulseAudio, which then uses ALSA itself to access the real sound card. PulseAudio also provides its own native interface to applications that want to support PulseAudio directly, as well as a legacy interface for ESD applications, making it suitable as a drop-in replacement for ESD.

For OSS applications, PulseAudio provides the padsp utility, which replaces device files such as /dev/dsp, tricking the applications into believing that they have exclusive control over the sound card. In reality, their output is rerouted through PulseAudio.

Few programs cannot communicate with PulseAudio:
Sound source ⟶ ALSA soundserver ⟶ PulseAudio ⟶ ALSA driver ⟶ hardware

Most can:
Sound source ⟶ PulseAudio ⟶ ALSA driver ⟶ Hardware

PulseAudio is network capable:
Sound source ⟶ PulseAudio ⟶ network ⟶ PulseAudio ⟶ ALSA driver ⟶ hardware

A program can circumvent PulseAudio and communicate directly with the soundcard driver:
Sound source ⟶ ALSA driver ⟶ Hardware

A program can circumvent PulseAudio and communicate with the ALSA soundserver
Sound source ⟶ ALSA soundserver ⟶ ALSA driver ⟶ hardware

Features

The main PulseAudio features include:[4]

  • Per-application volume controls[5]
  • An extensible plugin architecture with support for loadable modules
  • Compatibility with many popular audio applications[6]
  • Support for multiple audio sources and sinks
  • Low-latency operation and latency measurement
  • A zero-copy memory architecture for processor resource efficiency
  • Ability to discover other computers using PulseAudio on the local network and play sound through their speakers directly
  • Ability to change which output device an application plays sound through while the application is playing sound (without the application needing to support this, and indeed without even being aware that this happened)
  • A command-line interface with scripting capabilities
  • A sound daemon with command line reconfiguration capabilities
  • Built-in sample conversion and resampling capabilities
  • The ability to combine multiple sound cards into one
  • The ability to synchronize multiple playback streams
  • Bluetooth audio devices with dynamic detection
  • The ability to enable system wide equalization

Adoption

PulseAudio is available in recent versions of several major linux distributions such as Fedora, Ubuntu, Debian,[7] Mageia, Mandriva, Linux Mint, openSUSE, and OpenWrt.[8] There is support for PulseAudio in the GNOME project, and also in KDE, as it is integrated into Plasma Workspaces, adding support to Phonon (the KDE multimedia framework) and KMix (the integrated mixer application) as well as a "Speaker Setup" GUI to aid the configuration of multi-channel speakers.

Various Linux based mobile devices, including Nokia N900, Nokia N9 and the Palm Pre,[9] use PulseAudio.

Tizen, an open source mobile operating system which is a project of the Linux Foundation and is governed by a Technical Steering Group (TSG) composed of Intel and Samsung, uses PulseAudio.

Problems during adoption phase

  • When first adopted by distributions, PulseAudio developer Lennart Poettering described it as "the software that currently breaks your audio".[10] Poettering later claimed that "Ubuntu didn't exactly do a stellar job. They didn't do their homework" in adopting PulseAudio[11] for Ubuntu "Hardy Heron" (8.04), a problem which was then improved with subsequent Ubuntu releases.[12] However, in October 2009, Poettering reported that he was still not happy with Ubuntu's integration of PulseAudio.[13]
  • Interaction with old sound components by particular software: Certain programs, such as Adobe Flash for Linux, caused instability in PulseAudio.[14][15] Newer implementations of Flash plugins do not require the conflicting elements, and as a result Flash and PulseAudio are now compatible.
  • Early management of buffer over-underruns: Earlier versions of Pulseaudio sometimes started to distort the processed audio due to incorrect handling of buffer over-/underruns.[16]

Related software

Other sound servers

JACK is a professional sound server, which provides real-time, low latency (i.e. 5 milliseconds or less) audio performance and, since JACK2, supports efficient load balancing by utilizing symmetric multiprocessing, that is the load of all audio clients can be distributed among several processors. JACK is the preferred sound server for professional audio applications such as Ardour, Rezound, and LinuxSampler and multiple free audio production distributions use it as the default audio server.

General audio infrastructures

Before JACK and PulseAudio, sound on free systems were managed by multi-purpose integrated audio solutions. These solutions do not fully cover the mixing and sound streaming process, but they are still used by JACK and PulseAudio to send the final audio stream to the sound card.

  • ALSA provides a software mixer called dmix, which was developed prior to PulseAudio. This is available on almost all Linux distributions and is a simpler PCM audio mixing solution. It does not provide the advanced features (such as timer-based scheduling, and network audio) of PulseAudio. On the other hand, ALSA offers, when combined with corresponding sound cards and software, low latencies.
  • OSS. This was the original sound system used in Linux and other Unices, but was deprecated after the 2.5 Linux kernel.[17] Proprietary development was continued by 4Front Technologies, who in July 2007 released sources for OSS under CDDL for OpenSolaris and GPL for Linux.[18] The modern implementation, Open Sound System v4, provides software mixing, resampling, and changing of the volume on a per-application basis; in contrast to PulseAudio, these features are implemented within the kernel.

See also

References

  1. http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/4.0/
  2. "PulseAudio", Analysis Summary (Ohloh), archived from the original on 2009-10-18, retrieved 2011-06-16 
  3. 3.0 3.1 "License", PulseAudio git (Free desktop), retrieved 2011-06-16 
  4. 4.0 4.1 "About", PulseAudio (Free desktop), retrieved 2013-03-11 
  5. Poettering, Lennart, "Interviews", Fedora Project, Red Hat, retrieved 2009-07-03 
  6. Pulse Audio wiki, PulseAudio, archived from the original on 2009-10-18, retrieved 2009-07-19 
  7. PulseAudio (wiki), Debian, retrieved 2013-11-09 
  8. PulseAudio (wiki), OpenWRT, retrieved 2012-01-08 
  9. "Open source identity: PulseAudio creator Lennart Poettering", TechWorld, 8 October 2009 
  10. LPC: Linux audio: it's a mess, LWN, 2008-09-18, archived from the original on 2009-10-18, retrieved 2009-07-03 
  11. Lennart Poettering (18 July 2008), PulseAudio FUD, 0pointer.de, archived from the original on 2009-10-18, retrieved 2009-12-30 
  12. How-to: PulseAudio Fixes & System-Wide Equalizer Support, Ubuntu Forums, 2008-05-10, archived from the original on 2009-10-18, retrieved 2009-10-18 
  13. I'll Break Your Audio, Lennart Poettering Blog, 19 October 2009, retrieved 26 December 2009 
  14. No sound after running Flash, YouTube, etc. (pulseaudio solution), Ubuntu Forums, archived from the original on 2009-10-18, retrieved 2009-10-18 
  15. PulseAudio, Ubuntu Wiki, archived from the original on 2009-10-18, retrieved 2009-10-18 
  16. "Over-optimistic buffering in PulseAudio causes underruns (audible stuttering, pops)". Launchpad. Retrieved 9 November 2013. 
  17. An introduction to Linux sound systems and APIs, Linux.com, 9 August 2004, retrieved 23 March 2013, "OSS is available not only for Linux but also for BSD OSes and other Unixes. That may be its only advantage, because this system is not very powerful and was officially replaced by ALSA in 2.5 kernels..." 
  18. 4Front technologies releases the source code for open sound system, Linux PR, 2007-06-14, retrieved 2012-01-08 .

External links

This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.