Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
15
.bin/OLD/setaudio.orig
Executable file
15
.bin/OLD/setaudio.orig
Executable 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
|
||||
Reference in New Issue
Block a user