From owner-freebsd-hackers Tue May 30 9:13:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from marvin.kazrak.com (adsl-209-233-16-235.dsl.snfc21.pacbell.net [209.233.16.235]) by hub.freebsd.org (Postfix) with ESMTP id 2B5AD37BE0A for ; Tue, 30 May 2000 09:13:31 -0700 (PDT) (envelope-from brad@kazrak.com) Received: by marvin.kazrak.com (Postfix, from userid 1001) id 40E3224C; Tue, 30 May 2000 09:13:31 -0700 (PDT) Date: Tue, 30 May 2000 09:13:31 -0700 From: Brad Jones To: Scott Gasch Cc: freebsd-hackers@freebsd.org Subject: Re: ioctl for reading raw ATAPI CDDA data Message-ID: <20000530091331.A62390@marvin.kazrak.com> References: <20000529113458.A15204@www.medsp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000529113458.A15204@www.medsp.com>; from scott@mail.medsp.com on Mon, May 29, 2000 at 11:34:58AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 29, 2000 at 11:34:58AM -0700, Scott Gasch wrote: > Hi, > > I'm trying to rip CDDA from an ATAPI cdrom device. So first I tried > using cdd from /usr/ports. No dice, the resulting file is static. > Next I searched for an alternative and found daex. Since I'm running > FreeBSD-4.0-RELEASE the kernel mods the author describes are outdated. > I modified the daex source to use the CDIOCREADAUDIO ioctl and got > another program ripping static data from my CDs. 'cdda2wav' now works with ATAPI devices as well; I've had good luck with it. However, the problem with 'cdd', in my experience, was that it was returning data in the wrong byte order. 'sox -x' fixed it for me. > Next I thought the CDROM device simply didn't support the function so > I replaced it with a CDROM I know can rip (it does in Windows). Still > the static... > > So my question is -- does anyone have any experience with the above > ioctl call? Is the buffer in some format other than the raw data > format? Are there some other bits in there? Why is it coming back > full of static instead of music? Does anyone know a better ripping > tool? Does cdd work on your BSD box? Yes, cdd works on my box with ATAPI devices. Try running your data through sox or another converter program to byteswap it, and see if that fixes your problem. BJ -- Brad Jones -- brad@kazrak.com Any connection between your reality and mine is purely coincidental. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message