From: Steffen Huber <steffen.huber@gmx.de>
Subject: Re: Retrieve CD-R TOC
Date: Mon, 15 Jul 2002 16:47:16 +0200
Date: 2002-07-15T16:47:16+02:00 [thread overview]
Message-ID: <3D32E074.B336CDDE@gmx.de> (raw)
In-Reply-To: f7c083d5.0207121629.1c67fb4a@posting.google.com
Filoux wrote:
> Hello!!
Hi,
> I'd like to know if it's possible to retrieve the table of content
> (TOC) of a CD with ADA.
Nearly everything is possible with Ada ;-)
> I'm currently running linux and I need to get
> some information (like cd content, size of files, etc...).
Hmmmm...size of files? Unless I completely misunderstand you, you won't be
able to get the size of files out of a CD's TOC. The TOC has only
information about the start and the type (audio, data...) of a CD track
(and indexes and possibly CD Text and if it is 2 or 4 channel stereo
and if it is a multisession disc...).
The TOC does not know anything about files - you would have to examine
the data blocks on a CD and decode the ISO9660 (or Joliet or RockRidge)
directory information.
> I don't want to do it by executing a system call like (du -ah) but
> I'd like to do it by accessing the TOC of the CD (or DVD).
I would suggest that you look at the cdrecord sources and create some
bindings to the SCSI transportation layer that cdrecord uses.
For information about the Read TOC SCSI/IDE command, look at the
ATAPI and SCSI-II (and probably MMC) specs.
I have written a nice library to do things like that (and much more,
like e.g. writing CDs), but it is only usable for the RISC OS
operating system, and it is all inside a commercial CD writing
package ;-)
Steffen
--
steffen.huber@gmx.de steffen@huber-net.de
GCC for RISC OS - http://www.arcsite.de/hp/gcc/
Private homepage - http://www.huber-net.de/
prev parent reply other threads:[~2002-07-15 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-13 0:29 Retrieve CD-R TOC Filoux
2002-07-13 1:07 ` sk
2002-07-13 1:58 ` Larry Kilgallen
2002-07-13 13:58 ` Filoux
2002-07-14 22:45 ` Jacob Sparre Andersen
2002-07-14 23:57 ` sk
2002-07-15 14:47 ` Steffen Huber [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox