filename | src/gdrom/gddriver.h |
changeset | 782:1af8b5ce627c |
prev | 736:a02d1475ccfd |
next | 837:4eae2ddccf9c |
author | nkeynes |
date | Tue Jul 29 06:35:28 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Workaround OS X's inability to handle CD reads of unknown size (ie where the read request failed to specify an expected sector type) - read raw sectors and parse it out by hand. |
file | annotate | diff | log | raw |
1.1 --- a/src/gdrom/gddriver.h Mon Jul 14 07:44:42 2008 +00001.2 +++ b/src/gdrom/gddriver.h Tue Jul 29 06:35:28 2008 +00001.3 @@ -203,6 +203,10 @@1.4 */1.5 void gdrom_image_destroy_no_close( gdrom_disc_t d );1.7 +/**1.8 + * Determine the track number containing the specified sector by lba.1.9 + */1.10 +int gdrom_image_get_track_by_lba( gdrom_image_t image, uint32_t lba );1.12 /**1.13 * Given a base filename (eg for a .cue file), generate the path for the given1.14 @@ -218,6 +222,13 @@1.15 /************* Host-native support functions ***************/1.17 /**1.18 + * Given a raw (2352 byte) data sector, extract the requested components into the1.19 + * target buffer. length will also be updated with the length of the copied1.20 + * data1.21 + */1.22 +void gdrom_extract_raw_data_sector( char *sector_data, int mode, unsigned char *buf, uint32_t *length );1.23 +1.24 +/**1.25 * Parse a format 2 TOC, and write the results into the supplied disc structure.1.26 */1.27 void mmc_parse_toc2( gdrom_image_t disc, unsigned char *buf );
.