I WOULD APPRECIATE SOME HELP WITH THE cdio(7) FUNCTIONS OF Solaris 2.4!
I'm developing an Audio-CD tool using Solaris 2.4 (!) and am using the new
cdio (<sys/cdio.h>) commands supporting the CD-DA (digital audio).
I've tried my best to solve the following problems but without success.
1) There is an ioctl() command called CDROMCDDA that returns CD-DA data or
subcode data. The third argument of this ioctl() function is a pointer
to the type "stuct cdrom_cdda". This struct has a field called "cdda_addr"
containing the an unsigned int for the start address of the data to be
read; its value is supplied by the user.
My question: Which format of address should it be (LBA or MSF)? I've tried
both, but neither seems to work. I also tried passing pointers to
variables containing both LBA and MSF start addresses, but this didn't
work either. So, what should the user supply for the "cdda_addr" field?
2) The two ioctl() functions CDROMREADMODE2 and CDROMREADMODE1 aren't expained
in the man pages (man cdio). What is the difference between these two modes
and what do these ioctl() functions do?
Is there anyone out there who can help me?
Many thanks in advance,