Date: Thu, 21 May 1998 00:46:44 -0400 (EDT) From: jack <jack@germanium.xtalwind.net> To: Sean-Paul Rees <sean@dreamfire.net> Cc: questions@FreeBSD.ORG Subject: Re: sound question (simple... really.) Message-ID: <Pine.BSF.3.96.980521004119.8744D-100000@germanium.xtalwind.net> In-Reply-To: <Pine.BSF.3.96.980518200532.5678A-100000@dreamer.dreamfire.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 May 1998, Sean-Paul Rees wrote: > Can somebody recommend a program for playing a .au file? Or is > FreeBSD shipped with one? cat. cat filename.au > /dev/audio will work. If you want something a bit more elegant try this. #!/bin/sh # showaudio usage `showaudio filename' # echo wanting to show $1 type=`expr $1 : '.*\.\(.*\)'` case $type in au) cat $1 > /dev/audio ;; wav) splay $1 2>&1 ;; midi) timidity $1 ;; mid) timidity $1 ;; *) echo "don't know how to handle type $type for $1 .. sorry!" 1>&2 ;; esac -------------------------------------------------------------------------- Jack O'Neill Systems Administrator / Systems Analyst jack@germanium.xtalwind.net Crystal Wind Communications, Inc. Finger jack@germanium.xtalwind.net for my PGP key. PGP Key fingerprint = F6 C4 E6 D4 2F 15 A7 67 FD 09 E9 3C 5F CC EB CD enriched, vcard, HTML messages > /dev/null Mail from netcom.com blocked until they stop relaying SPAM -------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980521004119.8744D-100000>