diff options
Diffstat (limited to 'noise/modules/play')
-rwxr-xr-x | noise/modules/play | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/noise/modules/play b/noise/modules/play deleted file mode 100755 index 180c1e0c..00000000 --- a/noise/modules/play +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/sh -case "$1" in - (--help) - echo "play an audio file" ;; - (*) - exec 2>&1 - ffs='wav mp3 ogg asf flac' - - if test -z "$*" ; then - ls $HOME/noise/samples | sed ' - s:\.\('"`echo "$ffs" | tr \ \|`"'\)$: [30m\1[m: - s:^:/play : - s:.*:[32m&[m: - ' - else - for i in $ffs ; do - f=$HOME/noise/samples/$1.$i - test -f "$f" && - case "$i" in - wav) aplay "$f" & ;; - *) mplayer "$f" & ;; - esac && break - done || cat<<EOF -[33m\ -Keine Audiodatei mit dem Namen - - [4m$1[;33m.EXT - -gefunden... am besten gleich uploaden: - - scp NAME shack@shack.shack:$HOME/noise/samples/ - -folgende Dateiendungen werden erkannt: $ffs[m -EOF - fi -esac |