From owner-freebsd-multimedia Mon Sep 16 10:11:11 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1338337B400 for ; Mon, 16 Sep 2002 10:11:10 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5967243E6A for ; Mon, 16 Sep 2002 10:11:09 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (9oancpxftmab98o4@dsl-60-88.aei.ca [216.221.60.88]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id g8GGmcP28217; Mon, 16 Sep 2002 12:48:39 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 90C92402; Mon, 16 Sep 2002 12:51:14 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Mon, 16 Sep 2002 12:47:56 -0400 Date: Mon, 16 Sep 2002 12:47:56 -0400 From: The Anarcat To: Baldur Gislason Cc: multimedia@freebsd.org Subject: Re: Recording 16 bit samples Message-ID: <20020916164756.GB313@lenny.anarcat.ath.cx> References: <20020914195234.094E227A0@tesla.foo.is> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB" Content-Disposition: inline In-Reply-To: <20020914195234.094E227A0@tesla.foo.is> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --UHN/qo2QbUvPLonB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sox converts samples to its internal format when reading and converts back again when writing, so that's huge lag. Also, it uses a very small buffer for both ops, so it's really not the best tool to record. I suggest you try out my little "rec" tool that records RAW PCM from the sound card to see if you can record correctly. http://anarcat.ath.cx/cgi-bin/cvsweb.cgi/bin/rec/ That's CVS, you can download the whole thing in a tarball at: http://anarcat.ath.cx/cgi-bin/cvsweb.cgi/bin/rec/rec.tar.gz?tarball=3D1 A. On Sat Sep 14, 2002 at 07:51:59PM +0000, Baldur Gislason wrote: > I'm having trouble recording 16 bit samples with sox in FreeBSD, the=20 > recordings skip and do other weird stuff. I've tried this with 4 differen= t=20 > sound cards, and with both the pcm and the old snd kernel drivers. Anyone= =20 > else having the same problem? >=20 > Baldur >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message >=20 --=20 =46rom the age of uniformity, from the age of solitude, from the age of Big Brother, from the age of doublethink - greetings! --UHN/qo2QbUvPLonB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9hgs8ttcWHAnWiGcRAmf/AKCj/Bdz0r1cRwPlcp9GAvroiCJ8bwCeMcgO SpqKTQSi8WN8QuKsEI9pKRI= =z12O -----END PGP SIGNATURE----- --UHN/qo2QbUvPLonB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message