From owner-freebsd-current@FreeBSD.ORG Wed Sep 24 00:38:56 2003 Return-Path: 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 D3B3D16A4B3 for ; Wed, 24 Sep 2003 00:38:56 -0700 (PDT) Received: from c211-28-27-130.belrs2.nsw.optusnet.com.au (c211-28-27-130.belrs2.nsw.optusnet.com.au [211.28.27.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0EDF43F3F for ; Wed, 24 Sep 2003 00:38:52 -0700 (PDT) (envelope-from peterjeremy@optushome.com.au) Received: from server.c211-28-27-130.belrs2.nsw.optusnet.com.au (localhost.c211-28-27-130.belrs2.nsw.optusnet.com.au [127.0.0.1]) ESMTP id h8O7coXM028117; Wed, 24 Sep 2003 17:38:50 +1000 (EST) peter@server.c211-28-27-130.belrs2.nsw.optusnet.com.au) Received: (from peter@localhost) (8.12.9p1/8.12.9/Submit) id h8O7cnud028116; Wed, 24 Sep 2003 17:38:49 +1000 (EST) (envelope-from peter) Date: Wed, 24 Sep 2003 17:38:49 +1000 From: Peter Jeremy To: "Michael W. Oliver" Message-ID: <20030924073849.GA27963@server.c211-28-27-130.belrs2.nsw.optusnet.com.au> References: <200309200806.h8K8696Y049715@spider.deepcore.dk> <20030923024252.B21010@kushnir1.kiev.ua> <200309240019.44696.avleeuwen@piwebs.com> <200309232154.13047.michael@gargantuan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309232154.13047.michael@gargantuan.com> User-Agent: Mutt/1.4.1i cc: current@freebsd.org Subject: Re: What's happened to CDIOCREADAUDIO & friends? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2003 07:38:56 -0000 On Tue, Sep 23, 2003 at 09:54:06PM -0400, Michael W. Oliver wrote: Content-Description: signed data >Well, I didn't know somebody was patching it, so I started using the >following in ripit.pl (not exactly as below) instead of 'dagrab': > >dd if=/dev/acd0t01 ibs=2352 obs=2048 | sox -t raw -r 44100 \ >-s -c 2 -w - -t wav -r 44100 -s -c 2 -w track01.wav > >Funny thing is, it is a hell of a lot faster than dagrab was. Before, >dagrab would read the data in at about the same rate as flac would encode >it, but now I can rip a 12 track disc in the time it takes flac to encode >the first 6 tracks. Go figure... dagrab reads each block of data multiple times until it gets identical results. The code mentions "jitter correction" but doesn't include any detailed explanation. For a more equitable comparison, I suggest you hack dagrab.c:cd_read_audio() to use read() ISO ioctl(). Peter