aboutsummaryrefslogtreecommitdiff
path: root/audio/sndio/README.SBo
diff options
context:
space:
mode:
authorIvan Kovmir <i@kovmir.eu>2023-06-01 21:25:42 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-06-03 10:38:18 +0700
commitfa525c42e553c0c2ed550bf51cfc920e2c050652 (patch)
tree3e3be044823bc0c757580ba960810816ef550182 /audio/sndio/README.SBo
parent4f4933e98d9f9870dc0aaee67a26e70023591909 (diff)
audio/sndio: Added (small audio and MIDI framework)
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/sndio/README.SBo')
-rw-r--r--audio/sndio/README.SBo45
1 files changed, 45 insertions, 0 deletions
diff --git a/audio/sndio/README.SBo b/audio/sndio/README.SBo
new file mode 100644
index 0000000000000..5d52e64d383ac
--- /dev/null
+++ b/audio/sndio/README.SBo
@@ -0,0 +1,45 @@
+sndio on Linux works on top of ALSA (or OSS, if THAT is what you have).
+
+Before you start using sndio, make sure to disable all other sound servers,
+these include PulseAudio, PipeWire, Jack.
+
+Default slackware installation ships with PulseAudio over ALSA, so you have to
+disable PulseAudio. To disable PulseAudio, run the following lines as root:
+
+```
+# Disable pulseaudio.desktop:
+if ! grep -q "^Hidden=true$" /etc/xdg/autostart/pulseaudio.desktop ; then
+ echo "Hidden=true" >> /etc/xdg/autostart/pulseaudio.desktop
+fi
+
+# Edit /etc/pulse/client.conf to disable autospawn:
+sed -i "s/autospawn = yes/autospawn = no/g" /etc/pulse/client.conf
+sed -i "s/allow-autospawn-for-root = yes/allow-autospawn-for-root = no/g" /etc/pulse/client.conf
+```
+
+Save the following as '~/.asoundrc':
+
+```
+# See https://www.alsa-project.org/wiki/Asoundrc for more details.
+# Set default sound card to use.
+pcm.!default {
+ type hw
+ card 0
+}
+
+# Set default sound cards to control via alsamixer.
+ctl.!default {
+ type hw
+ card 0
+}
+```
+
+To start sndiod at boot, append the following snippet to '/etc/rc.d/rc.local':
+
+```
+if [ -x /etc/rc.d/rc.libvirt ]; then
+ /etc/rc.d/rc.libvirt start
+fi
+```
+
+And make sure that file is executable.