From 8712dfa17f0dd7b90c646e13d2cd4e0d4c5a11e6 Mon Sep 17 00:00:00 2001 From: krebs Date: Fri, 9 Sep 2011 21:26:15 -0400 Subject: //god/overlord: be the right and only one This commit also makes the //noise module a pure wrapper around the read overlord. --- god/overlord/index | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 god/overlord/index (limited to 'god/overlord/index') diff --git a/god/overlord/index b/god/overlord/index new file mode 100755 index 00000000..27506ccd --- /dev/null +++ b/god/overlord/index @@ -0,0 +1,27 @@ +#! /bin/sh +set -euf + +# cd // +cd $(dirname $(readlink -f $0))/../.. + +max=100 +step=10 +min=0 + +# fade-out streams +for i in `seq $max -$step $min`; do + amixer -q -c 0 -D hw:0 sset Front $i% + sleep 0.1 +done +streams/streams stop + +amixer -q -c 0 -D hw:0 sset Front $max% +mplayer god/overlord/announce.mp3 >/dev/null +espeak -v de -s 120 -a 900 "$*" + +# fade-in streams +streams/streams start +for i in `seq $min $step $max`; do + sleep 0.1 + amixer -q -c 0 -D hw:0 sset Front $i% +done -- cgit v1.2.3