Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 1997 19:48:22 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        freebsd-hackers@FreeBSD.ORG
Cc:        szoli@caesar.elte.hu (MEMPHISTO)
Subject:   Re: CD-ROM data tracks
Message-ID:  <19970809194822.LQ34226@uriah.heep.sax.de>
In-Reply-To: <Pine.A32.3.96.970726172744.19416A-100000@caesar.power.elte.hu>; from MEMPHISTO on Jul 26, 1997 17:29:51 %2B0200
References:  <Pine.A32.3.96.970726172744.19416A-100000@caesar.power.elte.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
As MEMPHISTO wrote:

Oh, i'm afraid we don't have a Dr. Faustus here. :)

>  I'd just like to know how can I check if a track on a CD is data or
> audio track?(via ioctl, of course).

There are a number of ioctls for CD-ROMs.  See the command
cdcontrol(1) for a sample implementation using them.  What you're
asking for is `cdcontrol info':

j@uriah 109% cdcontrol info
No CD device name specified. Defaulting to /dev/cd0c.    (XXX silly message)
Starting track = 1, ending track = 1, TOC size = 18 bytes
track     start  duration   block  length   type
-------------------------------------------------
    1   0:02.00  73:51.44       0  332219   data
  170  73:51.44         -  332219       -      -

(170 is the CD leadout, by definition.)
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970809194822.LQ34226>