Subject: Re: IDE Raw Audio Read not supported by NetBSD?
To: None <,>
From: Thor Lancelot Simon <>
List: current-users
Date: 02/05/1999 13:48:30
On Fri, Feb 05, 1999 at 01:34:21PM +0100, wrote:
> I have an ATAPI IDE CD-rom and I'd like to read audio tracks from my CD's.
> I tried to port dagrab to NetBSD for that purpose, but noticed I couldn't
> find something like a ioc_read_audio ioctl in /usr/include/sys/cdio.h
> as in FreeBSD's. Does this mean it is unsupported in NetBSD, or does it
> mean I'm looking in the wrong place for NetBSD. 

You're just not using quite the right approach.  It's simplest to use a
tool that knows how to just use SCSI/ATAPI commands to grab the audio
tracks from the device.  Since we have unified SCSI/ATAPI (unlike FreeBSD)
you have a choice of many such tools.

The best one I've found is "cdda2wav", which is part of cdrecord-1.8alpha
distributions.  *DO NOT* build and install the version of cdrecord you'll
find in such a distribution -- it's really, really, Really broken,
particularly on non-i386 (e.g. Alpha) platforms.  But cdda2wav works
great, and supports many different drives, including almost all new
ATAPI drives, which usually implement the MMC standard.

I use an ATAPI MMC CDR reader/writer to read and burn audio CD's, using
the cdda2wav from the cdrecord1.8alpha distribution and the cdrecord
from our packages collection (which is 1.6) and it works great, on
both x86 and alpha.

Thor Lancelot Simon	                            
	"And where do all these highways go, now that we are free?"