libcdio-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-help] reading the whole 2352 bytes from every type of sector


From: R. Bernstein
Subject: [Libcdio-help] reading the whole 2352 bytes from every type of sector
Date: Mon, 3 Mar 2008 23:16:51 -0500

Sorry, but I'm not sure I understand the lingo you are using and
what you want to do. Probably libcdio doesn't do what you want, but
there may be code that does something similar to what you want.

I gather psx cdroms is some sort of Playstation (PSX) CD-ROM? Other
things that factor into this is which image format is used ("bin"
suggests CDRWin BIN/CUE?) And finally what is track format of the data
you want to read? If the track format is an ISO9660 filesystem, then
there may be some code you might want to consult that looks strictly
outside the data portions. Look at the "fuzzy" routines in
libcdio/lib/iso9660/iso9660_fs.c.

Regardless, what is going on underneath is pretty simple. Basically
libcdio image formats use cdio_stream_seek() and cdio_stream_read() to
position and read data; these on most OS's are just seek() and read();
using seek/read you can get at any part of the image for most image
formats do keep the track data pretty much as it will appear on the
CD.


Matheus Izvekov writes:
 > Hi. I'm currently working on an emulator project thats supposed to
 > read psx cdroms, and i want to do away with the cdrom plugins and just
 > use libcdio. I need to be able to read the whole 2352 bytes of a
 > sector, and occasionally the 96 bytes of subchannel data. However,
 > the only way to do that that im aware of is the mmc_read_cd function.
 > However, it doesnt seem to work on image files, even though the bin
 > file contains the whole data that is needed. Is that something I'm
 > able to do with this library, or i should reconsider my conversion and
 > revert back to one home-coded plugin for every device?

If what you want to do is generally useful, a third possibility alluded
to above, is to make changes to libcdio. ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]