delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/27/09:51:07

X-Authentication-Warning: acp3bf.physik.rwth-aachen.de: broeker owned process doing -bs
Date: Fri, 27 Aug 1999 14:09:17 +0200 (MET DST)
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
X-Sender: broeker AT acp3bf
To: DJGPP list <djgpp AT delorie DOT com>
Subject: Re: Detecting Audio CD...
Message-ID: <Pine.LNX.3.93.990827140837.32L-100000@acp3bf>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

In article <7q4bu6$r45$1 AT autumn DOT news DOT rcn DOT net> you wrote:
> How do I detect if the CD inserted into my cd-rom drive is an audio or data
> cd?  Any info or code on the subject is greatly appreciated.  Thanks.

If I'm not totally mistaken, there's an MSCDEX API call to get the
track table, and info about each track. That includes a flag
describing the track as either 'data' or 'audio'. There used to be
(still is?)  a library for accessing the CD from DJGPP, by Brennan
J. Underwood. I don't have the URL handy, to check.

In a more general view, this only marginally is still a DJGPP
question.  Asking in a DOS system programming newsgroup might be more
helpful.

--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019