From b39e53ad25d7896a504d6b800b32da8cbadbd0ce Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Fri, 4 Jun 2021 19:49:51 -0400 Subject: [PATCH] audio stuff --- dotfiles-old/knowledge/audio | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dotfiles-old/knowledge/audio diff --git a/dotfiles-old/knowledge/audio b/dotfiles-old/knowledge/audio new file mode 100644 index 0000000..fed9da0 --- /dev/null +++ b/dotfiles-old/knowledge/audio @@ -0,0 +1,42 @@ +On modern Linux systems most people use ALSA and PulseAudio for sound. +This tends to work fine. This isn't always how it's been done but it's +how it's done now. + +I'm not an expert on Linux audio and I'm not gonna explain how this all +works because I don't know myself. However I've noticed a lot of guides +just gloss over what seem to be important parts of setup, so here it is. + +This is also a living document and low quality. + +Alpine Wiki says as of 2021-05-19 you'll need: + +alsa-utils alsa-utils-doc alsa-lib alsaconf + +Alpine splits documentation into their own packages from programs. + +Alpine also says to add all system users including root to the audio group. + +On Busybox systems this is `addgroup $USER audio`. +On GNU this is `usermod -aG audio $USER`. + +Alpine Wiki tells you to use `alsamixer` to find the ID number of your card +in F6 menu and then change defaults.ctl.card and defaults.pcm.card in +/usr/share/alsa/alsa.conf but mine was already the default. + +You need to also add and start the alsa service: +rc-service alsa start +rc-update add alsa + +It looks like I installed gstreamer too. + +Now you need pulseaudio. Here's how to do that according to Alpine Wiki, add: + +pulseaudio pulseaudio-alsa alsa-plugins-pulse + +Make sure you set pulseaudio to start when you need audio. +It freaks out at you if you try to set it systemwide. + +I do this in my bspwmrc for bspwm (and .config/i3/config for i3wm) but +I've heard this is an awful idea so ask your local user-group. + +2021-06-04: This works on artix-openrc.