>To build it on the fly, you would need to store the raw sectors and
all of the sub-channel information
you do not need raw sector headers, CRC, etc. to build the TOC.
you can build it if you have the following information:
just the length of each track in sectors. And that is all!
for multisession CDs you must also have the starting offset of each
session.
for video CDs you must also know the track mode, but usually CDs have
the following tracks formats:
audio CDs
cdda - 2352 bytes of data
data CDs
data in mode 1 (rarely mode 2 form 1) - 2048 bytes of data
playstation CDs
data in mode 2 form 1 - 2048 bytes of data
video CDs
first track in mode 2 form 1 - 2048 bytes of data
second track in mode 2 form 2 - 2324 bytes of data
so it isn’t even necessary to read headers of sectors, to build the TOC
for a video CD for instance.
BTW, I build TOCs dynamically for every CD types in Paragon CD Emulator.
You can check it at www.paragon-gmbh.com. You can build for example an
audio CD from any audio files.
Max
From: Jamey Kirby[SMTP:xxxxx@storagecraft.com]
Reply To: File Systems Developers
Sent: 21 ôåâðàëÿ 2001 ã. 10:55
To: File Systems Developers
Subject: [ntfsd] RE: Virtual vs. Hardware device drive
RE: [ntfsd] RE: Virtual vs. Hardware device driveI wrote several virtual
CD-ROM device drivers (DOS, 9x, NT and 2000). I implemented them as
CD-ROM
class drivers in NT and 2000. It was quite simple.
Chris,
What I did was to read the TOC form the CD-ROM (100 entries max.) and
save
them in a header in the file. I save all 100 even if there are less than
- If there are 12, 13 is the leadout and the other entries are blank.
To build it on the fly, you would need to store the raw sectors and all
of
the sub-channel information; a waste of space. When the audio disk
requires
a TOC, simply read the header.
Jamey
StorageCraft
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Cariddi
Sent: Tuesday, February 20, 2001 6:40 PM
To: File Systems Developers
Subject: [ntfsd] RE: Virtual vs. Hardware device drive
You don’t need the IFS kit to create a Virtual CDROM driver. It can
be
done as a SCSIPORT driver. The only thing that I have found difficult
is
generating a TOC for an AUDIO disk, faking one for a DATA image is easy.
Anyone want to comment on what you need to do to generate a TOC for a
file
that is a copy of an AUDIO CD-ROM?
Mark J. Cariddi
Consulting Associate
Open Systems Resources, Inc.
http://www.osr.com/
-----Original Message-----
From: Double Chiang [mailto:xxxxx@allion.com]
Sent: Tuesday, February 20, 2001 9:37 PM
To: File Systems Developers
Subject: [ntfsd] RE: Virtual vs. Hardware device drive
Hi,
Q/ is it possible to write a driver to simulate a mountable
> device such
> as
> a CD-ROM, but have the bits stream from RAM or some disk hosted
drive
> image?
> Yes it is possible and in fact I wrote a “virtual CD-ROM”
driver
> a couple of years ago that mounted cd image files from another
disk.
Can I have a question?
Does write a 'vritual CDROM driver that what you had done is to
create a
CDROM device and processing various IRP about IPR_READ_TOC… and
RAW_READ
etc?
Is writing this kind driver need IFS kit?
Thanks in advance
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: xxxxx@telecom.sins.ru
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com