PulseAudio is a network-capable sound server program distributed via the freedesktop.org project. It runs mainly on Linux, various BSD distributions such as FreeBSD and OpenBSD, macOS, as well as Illumos distributions and the Solaris operating system. It serves as a middleware in between applications and hardware and handles raw PCM audio streams.

PulseAudio is free and open-source software, and is licensed under the terms of the LGPL-2.1-or-later.

PulseAudio

It was created in 2004 under the name Polypaudio but was renamed in 2006 to PulseAudio.

PulseAudio

PulseAudio competes with newer PipeWire, which provides a compatible PulseAudio server (known as pipewire-pulse), and PipeWire is now used by default on many Linux distributions, including Fedora Linux, Ubuntu, and Debian.

PulseAudio

History

Microsoft Windows was previously supported via MinGW (an implementation of the GNU toolchain, which includes various tools such as GCC and binutils). The Windows port has not been updated since 2011, however.

Software architecture

In broad terms ALSA is a kernel subsystem that provides the sound hardware driver, and PulseAudio is the interface engine between applications and ALSA. However, its use is not mandatory and audio can still be played and mixed together without PulseAudio.

PulseAudio acts as a sound server, where a background process accepting sound input from one or more sources (processes, capture devices, etc.) is created. The background process then redirects these sound sources to one or more sinks (sound cards, remote network PulseAudio servers, or other processes).

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.

libcanberra

libcanberra is an abstract API for desktop event sounds and a total replacement for the "PulseAudio sample cache API": Complies with the XDG Sound Theme and Naming Specifications. Defines a simple abstract interface for playing event sounds. Interfaces with ALSA through libasound. Has a back-end to PulseAudio.

libSydney

libSydney is a total replacement for the "PulseAudio streaming API", and plans have been made for libSydney to eventually become the only audio API used in PulseAudio.

Features

The main PulseAudio features include: Per-application volume controls An extensible plugin architecture with support for loadable modules Compatibility with many popular audio applications Support for multiple audio sources and sinks 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 applications use to play sound through while they are playing sound (Applications do not need to support this, PulseAudio is capable of doing this without applications detecting that it has 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 device support with dynamic detection capabilities The ability to enable system wide equalization