From owner-freebsd-multimedia Fri Sep 18 10:30:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA25173 for freebsd-multimedia-outgoing; Fri, 18 Sep 1998 10:30:20 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from k6n1.znh.org (dialup18.gaffaneys.com [208.155.161.68]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA25168 for ; Fri, 18 Sep 1998 10:30:14 -0700 (PDT) (envelope-from zach@gaffaneys.com) Received: (from zach@localhost) by k6n1.znh.org (8.9.1/8.9.1) id RAA03801; Fri, 18 Sep 1998 17:30:25 GMT (envelope-from zach) Message-ID: <19980918123025.A697@znh.org> Date: Fri, 18 Sep 1998 12:30:25 -0500 From: Zach Heilig To: Luigi Rizzo , Zach Heilig Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: (oops!) converting sound from /dev/audio format to /dev/dsp References: <19980918095750.A28513@znh.org> <199809181449.QAA26620@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199809181449.QAA26620@labinfo.iet.unipi.it>; from Luigi Rizzo on Fri, Sep 18, 1998 at 04:49:04PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Sep 18, 1998 at 04:49:04PM +0200, Luigi Rizzo wrote: > > Is there a formula to convert a sound captured from /dev/audio to something > > that will work well when piped into /dev/dsp? I did a quick 'gnuplot' of > > the values of both, and don't see any obvious correlations. > the "sox" program will do the conversion you need. /dev/audio produces > a compressed (u-law) format whereas /dev/dsp is linear 8-bit as you > say. u-law has a better dynamic range, though. Thanks, I'll check this out. (dynamic range is not a real concern -- it simply needs to be non-irritating to listen too, and as small as possible). > (of course you can pipe it to /dev/audio and get recognizable audio as > well...) The problem is: I now have two formats of files... linear seems to be much easier to work on (when I'm writing the filter programs -- I figured out linear by looking at a graph of part of a file, ulaw is not as obvious). Anyway, thank you for the pointer. -- Zach Heilig -- zach@gaffaneys.com A horse without a nose... never wins. (unknown) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message