If you have a Toshiba XM3401 CD-ROM player (or 4401, I believe), you
can use this program to snarf digital audio data off your favorite
compact discs.

You need SunOS 4.1.3 and gcc to compile it.

A useful companion program is sox, available for anonymous ftp
from a site near you.  People who have crummy sound hardware
can use sox to convert the sound files cdda produces to something
their hardware can swallow:

% sox from-cdda.au -c 1 -t au - | sox -t au - -r 8000 -U -b foo.au

This command converts the file that cdda produces into a 1 channel,
8-bit ulaw sound that you can cat to /dev/audio.

If you have nice sound hardware, the data should be directly playable.

If cdda gets killed or interrupted or otherwise terminates abnormally,
it might not reset your CD-ROM player to data mode (density code 0x0,
blocksize 512).  Run cdda -t to reset it.


Matt Emerson
rme@thoughtstuff.com
