add script to play FLAC files with flac and waveplay
authorThorsten Glaser <tg@mirbsd.org>
Sat, 3 Dec 2011 16:52:02 +0000 (16:52 +0000)
committerThorsten Glaser <tg@mirbsd.org>
Sat, 3 Dec 2011 16:52:02 +0000 (16:52 +0000)
for those times mplayer segfaults on you

posix/flacplay [new file with mode: 0644]

diff --git a/posix/flacplay b/posix/flacplay
new file mode 100644 (file)
index 0000000..3ad24c4
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/mksh
+# probably works with POSIX shell, tested only with mksh
+
+trap "" INT
+for a in "$@"; do
+       flac -d -c "$a" | waveplay -
+done