April 25, 2019

PulseAudio Tames the Linux Audio Zoo, Part 1

Linux Audio=Herd of Cats

  • June 20, 2008
  • By Carla Schroder
There are a lot of great sound-related applications for Linux, from basic audio drivers and sound servers to sophisticated mixers, editors, and special effects engines. Which is not much consolation for the user who just wants sound to work on her system, and these days everything old is new again--once again, getting sound to work correctly, or at all, is almost as fun as in the olden days. Only these days it's because of "progress," not because of immaturity. This is due to PulseAudio becoming the default sound server on an increasing number of Linux distributions, such as Ubuntu Hardy, Fedora 8 and up, and Mandriva 2008.1. A number of other distributions include it as an option, such as openSUSE, Debian, Arch Linux, and Gentoo. It promises superior audio functionality, but brings with it a few woes as well, and has a lot of users asking "How does adding Yet Another Sound Server to Linux help anything?"

The current major Linux sound servers are Enlightened Sound Daemon (ESD or EsounD) for Gnome, analog Real time synthesizer (aRts) for KDE2/3, and Advanced Linux Sound Architecture (ALSA), which works everywhere. Network Audio System (NAS) is a client/server networked sound system for thin clients. For applications that require OSS, ALSA, ESD, and aRts all include an OSS emulator. JACK is a popular professional-level low-latency audio server. One thing these all have in common is they require ALSA to provide the audio hardware drivers.

ESD and aRts both support networked sound, and manage sound streams from multiple sources. ESD is hard-coded into Gnome, but thanks to the PulseAudio developers it should soon be divorced from Gnome, as a proper modular Linux application should be. aRts was designed from the beginning as an independent, portable audio framework. ALSA provides device drivers, multi-device management, basic mixing and recording, and works in any Linux environment, including the console.

ESD and aRts both perform both low-level and higher-level functions. Both interface between sound hardware and applications, and also encode and decode your various file and streaming audio formats. aRts does everything; ESD handles sound server duties, and GStreamer handles the encoding and decoding. Both eventually pass everything down the pipeline to ALSA.

aRts has been officially deprecated by the KDE team for KDE4, and will be replaced by Phonon. Phonon promises a simpler API (application programming interface) by functioning more as a universal interface between existing audio engines such as ALSA, Xine, MPLayer, and VLC. The Phonon developers also have the worthy goal of designing a friendlier mixer interface that doesn't require knowledge of sound engineering terminology, but uses sensible labels like Notifications, Music, and Communications.

Most Popular LinuxPlanet Stories