From owner-freebsd-questions@FreeBSD.ORG Sun Oct 19 12:19:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE45816A4B3 for ; Sun, 19 Oct 2003 12:19:13 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4DFB43F75 for ; Sun, 19 Oct 2003 12:19:12 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9JJJC7u081227; Sun, 19 Oct 2003 14:19:12 -0500 (CDT) (envelope-from dan) Date: Sun, 19 Oct 2003 14:19:12 -0500 From: Dan Nelson To: BSD baby Message-ID: <20031019191912.GH90762@dan.emsphone.com> References: <20031019191435.GA92677@mail.hitmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031019191435.GA92677@mail.hitmedia.com> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: most direct way to get audio file to sound card? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 19:19:13 -0000 In the last episode (Oct 19), BSD baby said: > What's the most direct way to cat an audio file into the sound card? > > The FreeBSD manual talks about wavplay or mpg123 or xmms, but what > if I just want to send an audio file to the sound card without an > application inbetween? > > (Reason why - I want to make a quick shell script to play my flac > audio files. I can use sox to convert to wav or raw on the fly, > but still can't get it to the sound card.) sox file.flac -t ossdsp /dev/dsp or use the /usr/local/bin/play command installed by the sox port, which does the same thing. -- Dan Nelson dnelson@allantgroup.com