-Igeneric_scsi
.-Icooked_ioctl
.
Device setup
The cd reading device can be given with an option (-D)
on the command line or through a environment variable (CDDADEVICE).
CDDADEVICE=-D0,6,0; export CDDADEVICE
call cdda2wav without the device option to use the default setting:
cdda2wav lovesong.wav
cdda2wav -D0,6,0 lovesong.wav
(stop or kill the daemon)
umount /dev/cdrom
rmmod ide-cd
modprobe ide-scsi
cdrom=ide-scsi
Next you need to find out the mapping of the emulated scsi device with the
scan_scsi.linuxscript. Running it produces output like this:
Host: scsi0 Channel: 00 Id: 00 Lun: 00 CD-ROM -> /dev/sg0Cdda2wav needs to be called with a SCSI style device (here ID 0 and LUN 0):
cdda2wav -D0,0 -Igeneric_scsi lovesong.wavor alternatively
cdda2wav -D/dev/sg0:0,0 -Igeneric_scsi lovesong.wav
modprobe sgThen like in the previous section run
scan_scsi.linuxand use the reported ID/LUN numbers with the -D device setting.
cdda2wav -D/dev/sg0:0,0 -Igeneric_scsi lovesong.wav
modprobe paride
modprobe frpw
modprobe pg
scan_scsi.linuxand use the reported ID/LUN numbers with the -D device setting.
cdda2wav -D0,0 -Igeneric_scsi lovesong.wav
br--r--r-- 1 root disk 11, 0 Apr 5 1999 /dev/sr0The SCSI cdrom driver sr needs to be present to use these devices. Cdda2wav can use them natively with ioctl() calls:
cdda2wav -D/dev/sr0 -Icooked_ioctl mysong.wav
brw-r----- 1 root disk 3, 64 Apr 5 1999 /dev/hdbThe ATAPI driver ide-cd needs to be present to use these devices. Cdda2wav can use them natively with ioctl() calls:
cdda2wav -D/dev/hdb -Icooked_ioctl mysong.wav
Most probably they are not in use anymore due to slow speeds. Nevertheless cdda2wav can use them through the kernel driver with ioctl() calls:
cdda2wav -D/dev/sonycd -Icooked_ioctl lovesong.wavor
cdda2wav -D/dev/sbpcd -Icooked_ioctl lovesong.wav
SunOS/Solaris device setup examples
You will need Jörg Schilling's scsi kernel driver.
cdda2wav -Igeneric_scsi -D/dev/0,2,0 lovesong.wavfor the first SCSI cdrom device with SCSI id 2 and SCSI lun 0.
cdda2wav -Igeneric_scsi -D/dev/rcd0d:@ lovesong.wavfor the first ATAPI cdrom device.
cdda2wav -Igeneric_scsi -D/dev/rcd0d:2,0 lovesong.wavfor the first SCSI cdrom device with SCSI id 2 and SCSI lun 0.
cdda2wav -Igeneric_scsi -D/dev/rcd0c:@ lovesong.wavfor the first ATAPI cdrom device.
cdda2wav -Igeneric_scsi -D/dev/rcd0c:2,0 lovesong.wavfor the first SCSI cdrom device with SCSI id 2 and SCSI lun 0.
cdda2wav -Icooked_ioctl -D/dev/racd0.ctl lovesong.wavfor the first ATAPI cdrom device.
cdda2wav -Igeneric_scsi -D/dev/rscd0.ctl:2,0 lovesong.wavfor the first SCSI cdrom device with SCSI id 2 and SCSI lun 0.
SCO Openserver device setup examples
These examples are based on version 3.2 on i386.
cdda2wav -Igeneric_scsi -D0,0,0 lovesong.wavfor the first SCSI cdrom device. Use
cdda2wav -Igeneric_scsi -D1,0,0 lovesong.wavfor the second SCSI cdrom device, and so on.
The mapping is probably in chronological order, not necessarily in the order of SCSI ids.
cdda2wav -Igeneric_scsi -D/dev/rcd0:5,0 lovesong.wavfor a SCSI cdrom device with ID 5.
Apple Mac OS X device setup examples
There might be some issues with the finder program.
Please report back!
cdda2wav -Igeneric_scsi -DIOCompactDiskServices/N lovesong.wavfor the N'th cdrom or cdburner device.
Use
cdda2wav -Igeneric_scsi -DIODVDServices/N lovesong.wavfor the N'th dvd device.