PulseAudio: Difference between revisions
(link to multiple wikis) |
(Adding information about pulseaudio-utils since this fixes volume control support with Window Managers.) |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
{{Cmd|apk add alsa-plugins-pulse}} | {{Cmd|apk add alsa-plugins-pulse}} | ||
== PulseAudio Utils == | |||
For pactl, which Window Managers commonly use for managing volume control, install pulseaudio-utils. | |||
{{Cmd|apk add pulseaudio-utils}} | |||
== Bluetooth == | |||
Before you can connect your device to Bluetooth speakers or headphones, you'll have to make sure {{Pkg|pulseaudio-bluez}} is installed. See the [[Bluetooth]] page for more general Bluetooth installation instructions. | |||
{{Cmd|apk add pulseaudio-bluez}} | |||
== Process Priority == | == Process Priority == |
Latest revision as of 21:45, 10 February 2025
Installation
apk add pulseaudio pulseaudio-alsa
Alsa only applications support
Most applications on Alpine Linux are compiled to support only ALSA, foregoing linking against libpulse and the ability to dynamically switch to pulseaudio output when it finds that pulseaudio is running. Install the pulse output plugin for ALSA so applications can output to Pulseaudio.
apk add alsa-plugins-pulse
PulseAudio Utils
For pactl, which Window Managers commonly use for managing volume control, install pulseaudio-utils.
apk add pulseaudio-utils
Bluetooth
Before you can connect your device to Bluetooth speakers or headphones, you'll have to make sure pulseaudio-bluez is installed. See the Bluetooth page for more general Bluetooth installation instructions.
apk add pulseaudio-bluez
Process Priority
Pulseaudio should run with an elevated priority, because e.g. crackling or delayed audio is more annoying than a low framerate in games.
Installing the shadow package (which is compiled against linux-pam) is an easy way for the non-root user to be granted the ability to change niceness, and pulseaudio is recommended to be run as the user, rather than as root. E.g. in /etc/security/limits.d/audio.conf (and putting the user in the "audio" group):
@audio - nice -11