From owner-freebsd-current@FreeBSD.ORG Mon Sep 19 12:29:31 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DE8016A41F for ; Mon, 19 Sep 2005 12:29:31 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA9B943D48 for ; Mon, 19 Sep 2005 12:29:30 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (uhupcr@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.1/8.13.1) with ESMTP id j8JCTSi3012192 for ; Mon, 19 Sep 2005 14:29:28 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.1/8.13.1/Submit) id j8JCTRER012191; Mon, 19 Sep 2005 14:29:27 +0200 (CEST) (envelope-from olli) Date: Mon, 19 Sep 2005 14:29:27 +0200 (CEST) Message-Id: <200509191229.j8JCTRER012191@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG In-Reply-To: X-Newsgroups: list.freebsd-current User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-RELEASE (i386)) X-Mailman-Approved-At: Mon, 19 Sep 2005 13:11:10 +0000 Cc: Subject: Re: audio (acdt01) dump broken? (BETA4 (5)) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-current@FreeBSD.ORG List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 12:29:31 -0000 Emanuel Strobl wrote: > Ben Kaduk wrote: > > I also checked the handbook for copying cd's -- you are correct that > > 2352 is the "magic" blocksize -- I used 64k when ripping an entire > > (data) cd to copy it. It's not "magic", it's simply the "Red Book" sector size of a CD. (The sample rate is 44.1 khz, so you have 176400 bytes per second [44100 * 4]. A single-speed drive reads 75 sectors per second, so you need 176400 / 75 = 2352 bytes per sector. That's where the number comes from.) > Hmm, AFAIK WAV _is_ PCM, both don't have any headers. But I'm out of=20 > business for details for more than 10 years, so I may be wrong. No, WAV is a format invented by Microsoft which contains a header (usually 44 bytes, but it can vary). "Raw PCM" doesn't have a header (when handling CD audio data, it's usually 2-channel signed 16 bits little-endian linear data). You can use sox for conversion. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "C is quirky, flawed, and an enormous success." -- Dennis M. Ritchie.