1
0

audio stuff

This commit is contained in:
Deven Blake 2021-06-04 19:49:51 -04:00
parent 412c6d06f5
commit b39e53ad25

View File

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