From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 23:01:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 154D1106566C for ; Thu, 14 Jan 2010 23:01:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id C826D8FC15 for ; Thu, 14 Jan 2010 23:01:15 +0000 (UTC) Received: from r55.edvax.de (port-92-195-164-220.dynamic.qsc.de [92.195.164.220]) by mx02.qsc.de (Postfix) with ESMTP id 24CD51E9C0; Fri, 15 Jan 2010 00:01:14 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o0EN1Dll033463; Fri, 15 Jan 2010 00:01:13 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 15 Jan 2010 00:01:13 +0100 From: Polytropon To: Gary Kline Message-Id: <20100115000113.19fef26e.freebsd@edvax.de> In-Reply-To: <20100114223105.GA84284@thought.org> References: <20100114012059.GA3921@thought.org> <20100114013746.GB67999@orion.hsd1.pa.comcast.net> <20100114024242.GA9744@thought.org> <20100114165717.GA5651@dan.emsphone.com> <20100114201616.GA73961@thought.org> <20100114211947.GB5651@dan.emsphone.com> <20100114223105.GA84284@thought.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: any port use /dev/dsp directly? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 23:01:16 -0000 On Thu, 14 Jan 2010 14:31:05 -0800, Gary Kline wrote: > I'm wondering of theses is some sox translation that > would do say > > %sox -w WAV -r [rawoutfile] That's possible, but you have to tell sox how the raw file should be parameterized, e. g. sampling frequency, channels, bit width. There are command line parameters that can be used for that, e. g. % sox mysound.wav -r 44100 -c 2 -w -s mysound.raw The type "raw" means that there's no header in the file, it's just the plain data, for example as the hardware CD player uses it (which is the CDR file format - CD audio). In this case, you have to specify how to build those raw data elements from the original waveform file (WAV does have a header that describes its content). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...