Update 2023-04-09 20:37 OpenBSD/amd64

This commit is contained in:
c0dev0id
2023-04-09 20:37:05 +02:00
parent 299fd51b6a
commit b6e06324bd
3 changed files with 19 additions and 1 deletions

15
.bin/setaudio Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
LIST=$(dmesg | grep "^uaudio.*configuration.*interface*" | sed 's/uaudio\(.\).*"\(.*\)".*/\1 - \2/g')
DEV=$(sndioctl -n server.device)
echo "Select sound device (current=$(( DEV - 1 ))):"
echo "s - System Audio (PCI)"
echo "$LIST"
echo -n "=> "
read -r
case $REPLY in
s) sndioctl -q server.device=0; ;;
[0-9]) sndioctl -q server.device=$(( REPLY + 1 )); ;;
esac