inital commit. Not all games work 100, or even 50 percent lol.
This commit is contained in:
19
soundboard/soundboard
Executable file
19
soundboard/soundboard
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -ne 1 ] ; then
|
||||
echo "Usage: soundboard name, where name is the name of a soundboard you want to load."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -d sounds/$1 ] ; then
|
||||
echo "soundboard $1 not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
while [ 1 -gt 0 ] ; do
|
||||
read -sn1 key
|
||||
if [ -f sounds/$1/$key.ogg ] ; then
|
||||
play -qV0 sounds/$1/$key.ogg&
|
||||
fi
|
||||
done
|
||||
exit 0
|
Reference in New Issue
Block a user