Pulse Audio - Design

Design

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).

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

Read more about this topic:  Pulse Audio

Famous quotes containing the word design:

    Joe ... you remember I said you wouldn’t be cheated?... Nobody is really. Eventually all things work out. There’s a design in everything.
    Sidney Buchman (1902–1975)

    With wonderful art he grinds into paint for his picture all his moods and experiences, so that all his forces may be brought to the encounter. Apparently writing without a particular design or responsibility, setting down his soliloquies from time to time, taking advantage of all his humors, when at length the hour comes to declare himself, he puts down in plain English, without quotation marks, what he, Thomas Carlyle, is ready to defend in the face of the world.
    Henry David Thoreau (1817–1862)

    You can make as good a design out of an American turkey as a Japanese out of his native stork.
    —For the State of Illinois, U.S. public relief program (1935-1943)