ref: a7f1dbbc0e1b87ea79ef32cdd1364625a1c65dc4
parent: 70d2831ffa6d0ed05f0557df0ebb01015c6bb6e2
author: qwx <qwx@sciops.net>
date: Wed Oct 28 21:02:17 EDT 2020
add pcmf: pcm equivalent for decoding to file and pplay -f on it
--- /dev/null
+++ b/pcmf
@@ -1,0 +1,10 @@
+#!/bin/rc
+rfork n
+t=/tmp/pplay.$pid
+fn clean{ rm -f $t }
+fn sigexit{ clean }
+fn sigint{ clean }
+ramfs
+play -o /tmp/pplay.$pid $* >[2]/dev/null
+pplay -f /tmp/pplay.$pid
+rm -f /tmp/pplay.$pid