Commit Graph

59 Commits

Author SHA1 Message Date
c5b34ee3d9 Convert if to switch statement. 2022-11-13 19:38:03 +00:00
f9f97c02c5 Mark newly discovered pregap sectors for retry. Fixes incorrect data on some track type changes. 2022-04-09 20:27:05 +01:00
1c6fb91964 Workaround when some drive's firmware return a track type change error too soon. Fixes #711 2022-04-09 16:46:57 +01:00
ff65da6c48 Use merge pattern. 2022-03-16 11:47:00 +00:00
762e3eb6d2 General cleanup and refactor. 2022-03-07 07:36:44 +00:00
0bc819feab Move to file scoped namespaces. 2022-03-06 13:29:38 +00:00
dd4451740c Update copyright year. 2022-02-20 09:34:52 +00:00
4de10d0c34 Clarify interface usage. 2021-12-28 03:20:51 +00:00
cd41c8e59a Simplify some struct type names. 2021-09-14 21:18:28 +01:00
9dc57c2bd8 Remove deprecated FreeBSD code. 2021-09-14 20:44:06 +01:00
44b0a10895 Restore speed reduction on audio reading disabled by previous commit. 2021-09-05 19:10:05 +01:00
b174c3f524 Fix reading first audio sectors in track type change as garbage on drives that can read scrambled data. 2021-09-05 19:09:22 +01:00
82934f0c3d Do not try to read as audio data sectors with medium error. 2021-09-05 06:48:10 +01:00
5ccb874882 Fix infinite loop when dumping multisession disc. 2021-09-05 05:36:05 +01:00
1af36c75bd Try to reduce workaround some firmware bug in some audio CDs with hidden audio for #605. 2021-08-03 21:14:59 +01:00
2b52a5b0a6 Fix speed calculations for very fast devices. Fixes #473 2021-07-28 01:42:52 +01:00
eda85862cd Decode fixed or descriptor SCSI sense in a single pass, use whichever was returned by drive. 2021-03-26 00:37:54 +00:00
472a1d94d8 Update copyright year. 2020-12-31 23:08:23 +00:00
6c58083c64 Change method of reading subchannels in Plextor drives, fixes #395 2020-11-06 00:26:23 +00:00
f92f122443 Change how pregap starting with 0 is calculated dumping vs converting. Fixes #375 2020-11-04 23:55:24 +00:00
49dda86cd8 Ensure only unique bad blocks are saved in resume file. Fixes #381 2020-11-03 01:40:10 +00:00
c104a51d5a Add support for dumping CDs to images that only support cooked user data. Fixes #378 2020-10-23 04:01:55 +01:00
db03ca31f9 Disable FUA to fix reading from old SCSI disks. 2020-10-17 02:15:15 +01:00
2376b65763 Code style fixes. 2020-07-22 13:20:25 +01:00
163d2ce8db Add missing XML documentation. 2020-07-20 06:02:34 +01:00
b0f01f53f0 Handle discs that have pregap ending in LBA 1 instead of ending in LBA 0. 2020-07-18 20:43:37 +01:00
64689fafaa Fix infinite loop on some CD track mode changes while dumping. 2020-07-18 13:59:22 +01:00
533a94bdc9 Fix infinite loop when Lead-Out cannot be crossed. 2020-07-14 14:24:44 +01:00
f1244d543c Move subchannel generation and fixing to a separate class. 2020-07-14 01:06:23 +01:00
720bb1df6e Save error log on dump. 2020-07-13 18:54:41 +01:00
b3e5ada998 Add option to skip hole between data and audio in CD-i Ready discs. Fixes #295 2020-06-17 01:59:09 +01:00
1f52389048 Optimize speed when reading subchannels. 2020-06-14 18:42:33 +01:00
78ee88a799 Fix infinite loop failing to cross leadout dumping CDs. 2020-06-14 15:13:50 +01:00
87dc8029b5 Allow to retry bad subchannel sectors. 2020-06-13 19:15:27 +01:00
5c6b0e70c0 Update the pregap while dumping if found to be bigger than known one. 2020-05-05 23:25:15 +01:00
9e72a69ba9 Use subchannel, if available, to set MCN. 2020-05-05 21:08:41 +01:00
fb947e3d5c Use subchannel, if available, to set ISRC. 2020-05-05 20:26:18 +01:00
de890b3461 Always use raw subchannel internally. 2020-05-05 15:46:32 +01:00
143f57342a Read with subchannel even if not supported by image or not asked by user. 2020-05-05 13:28:34 +01:00
d0c052c347 Write subchannel log when dumping Compact Disc media. 2020-04-27 02:29:49 +01:00
8852be3ccf Do not cross lead-out in data tracks. 2020-04-24 13:29:50 +01:00
8fb4a0e532 Fix #310. 2020-04-03 02:45:15 +01:00
236c70fc55 Fix warnings. 2020-03-12 00:29:39 +00:00
b55470541a Complete file headers. 2020-03-11 21:57:43 +00:00
32c8d6a2d9 Fix dumping track type change border in Plextor drives. 2020-03-07 20:05:17 +00:00
7bc33f663e Fix dumping correct data when reading subchannels in Plextor drives. 2020-03-07 19:38:41 +00:00
07aa1f22bc Fix track type change border when image supports long sectors. 2020-03-07 18:04:55 +00:00
eba2452afc Move common offset fixing code to a separate class. 2020-03-06 18:49:45 +00:00
6b89ccd01c For consistency, sector validity is not checked. Will be implemented in next version. 2020-03-05 03:44:07 +00:00
000aea36dc Change how last sectors of a data track are read before a following audio track. 2020-03-05 03:41:02 +00:00