shithub: rc

ref: 1933788623427ea804bb2db1ab8e2f0034abed39
dir: /bin/pcmf/

View raw version
#!/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