From owner-freebsd-questions Wed May 20 21:48:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA19024 for freebsd-questions-outgoing; Wed, 20 May 1998 21:48:42 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from germanium.xtalwind.net (germanium.xtalwind.net [205.160.242.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA18977 for ; Wed, 20 May 1998 21:48:27 -0700 (PDT) (envelope-from jack@germanium.xtalwind.net) Received: from localhost (jack@localhost) by germanium.xtalwind.net (8.9.0.Beta3/8.9.0.Beta3) with SMTP id AAA09703; Thu, 21 May 1998 00:46:44 -0400 (EDT) Date: Thu, 21 May 1998 00:46:44 -0400 (EDT) From: jack To: Sean-Paul Rees cc: questions@FreeBSD.ORG Subject: Re: sound question (simple... really.) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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